DMD on Haiku?
Paulo Pinto
pjmlp at progtools.org
Tue Oct 30 05:19:03 PDT 2012
On Tuesday, 30 October 2012 at 12:11:41 UTC, Isak Andersson wrote:
>> Do note that getting DMD, druntime, and phobos running on
>> Haiku will take a lot of porting work. To name a few things:
>>
>> * All preprocessor #ifs in DMD for POSIX need to have Haiku
>> added.
>> * In all likelihood, DMD's port wrapper needs updating for
>> Haiku.
>> * druntime's POSIX headers all need to be updated for Haiku.
>> * Any Haiku-specific header modules need to be added to
>> druntime.
>> * DMD, druntime, and phobos all need to be tested and debugged.
>> * Probably other things I forgot.
>>
>> (This is all assuming Haiku is POSIX-compliant. If it isn't,
>> it's going to be even more work, since most of druntime has
>> two code paths: One for Windows and one for POSIX.)
>
> Yep, it seems like it has ran well after adding the
> pre-proccessor stuff. But of course it needs testing and all
> that. Haiku is very POSIX compliant although not 100%, but for
> most needs it is fine.
Based on my experience POSIX compliance is like any standard.
You end up getting lots of #ifdef for each POSIX system anyway.
The only people that think POSIX is a standard without any
issues, only know GNU/Linux.
One thing missing from the list which costs a lot of effort, is
code generation.
Based on my toy Solaris experience with DMD, I think it is easier
to use LDC or GDC for bringing D to other platforms.
--
Paulo
More information about the Digitalmars-d
mailing list