digitalmars.D.learn - OS kernel in D?
- Curious User (4/4) Apr 04 2006 Is it possible to write an OS kernel in D without going through contorti...
- pragma (10/14) Apr 04 2006 AFAIK, there's no direct path to getting either DMD or GDC to emit somet...
Is it possible to write an OS kernel in D without going through contortions necessary to make the runtime standalone? Perhaps the GNU port of D with -fstandalone and -nostdinc or whatever might do the job nicely. But how about with DM's D compiler?
Apr 04 2006
In article <e0tqca$10lq$1 digitaldaemon.com>, Curious User says...Is it possible to write an OS kernel in D without going through contortions necessary to make the runtime standalone? Perhaps the GNU port of D with -fstandalone and -nostdinc or whatever might do the job nicely. But how about with DM's D compiler?AFAIK, there's no direct path to getting either DMD or GDC to emit something resembling an OS kernel. As you allude to in your post, one would indeed have to go through contortions modifying the runtime. Phobos would have to be modified to support itself when working with memory, threads, mutexes, semaphores, devices, and so on. However, others have made the first steps toward a kernel written in the D langauge: http://www.prowiki.org/wiki4d/wiki.cgi?KernelWithD - EricAnderton at yahoo
Apr 04 2006