Minimalistic Phobos?

Sean Kelly sean at f4.ca
Fri Oct 27 06:46:11 PDT 2006


Chris Nicholson-Sauls wrote:
> Fredrik Olsson wrote:
>> I am looking into using D for an embedded system, for this GDC for 
>> ARM, and some tweaking of Phobos needed.
>>
>> For this I find most of the functionality in Phobos is kind of 
>> superfluous. So my question is, what are the bare minimum needed to 
>> get D up and running? And would it not be a good idea to move this 
>> from std.* to say core.* or equivalent?
>>
>>
>> // Fredrik Olsson
> 
> You could take a look at Ares to get a good idea.  The only ones I know 
> for sure are module 'object' and package 'std.internal'.  Giving the 
> required runtime code its own 'core' package (or whatever name) isn't a 
> bad idea.

A few other modules needed offhand:

std.thread
std.asserterror
std.cover (for -cov, not used by gdc)
std.moduleinit
std.outofmemory
std.switcherror
std.syserror
std/typeinfo/*

Aside from import dependencies by the code in internal, I think that 
about covers it.  And you can stub out the thread code if you aren't 
targeting a multithreaded system.


Sean



More information about the Digitalmars-d mailing list