Minimal D Cross Compiler
Gregor Richards
Richards at codu.org
Thu Sep 20 08:51:26 PDT 2007
Brian Madden wrote:
> Sorry for the slow response, however I did manage to fix my error. It
> turns out I had nulled out a variable in the d-lang.cc file because it
> was bugging out when I tried to make. Later, it caused a problem
> because it was doing a string comparison on it. I changed it from NULL
> to "w00t" and magically everything works, EXCEPT!!!! I am getting some
> funky errors where D is looking for includes that don't exist. First D
> wanted object.d, which I found and included via command line arg with
> the -I flag. Then D wanted outofmemory.d, which I also found and gave
> it. Then it wanted config.d which I could find nowhere, and gave up for
> the day.
>
> After that I ended up getting a new hard drive and reinstalling OS X. I
> will be giving this another go shortly. Maybe the fresh install will do
> me well.
>
> I'll let you know how it goes, but some good news for a change is that
> we have a 32bit cross compiled kernel building and booting. If we can
> beat this 64bit monster we'll be in business!!
>
> -Brian
These files are part of the runtime environment. Since you're not
targeting an OS, you're going to need to roll your own runtime
environment. Unlike C, D cannot function without a runtime environment.
I would recommend looking at Tango's lib/ directory and starting from
there. The GC is probably the only part that will need significant
change to be rolled into a kernel.
- Gregor Richards
More information about the Digitalmars-d
mailing list