Mail Archives: djgpp/1999/05/04/05:33:12
"Shawn" <NRLax27 AT aol DOT com> writes:
> I'm beginning to work on a new operating system for Intel 80386 or
> higher. I had planned to use DJGPP and NASM to do this, but it
> appears that DJGPP outputs DOS dependant code. Is there anyway
> around this? Is there another C compiler to use?
gcc produces 386 machine code, which will run on any 386 machine,
subject to the object formats being compatible (ie. your OS being
able to use COFF binaries, or you converting the djgpp output into
whatever format you do want). But the djgpp libc is indeed very
closely tied to DOS: it has to be in order to work, and there is
no such thing as a platform-independent runtime library (you can't
implement things like open() without knowing how to talk directly
to the OS). So you'll have to write your own libc and startup code,
or make some major changes to the djgpp version.
Shawn Hargreaves.
- Raw text -