Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE3013661FA@probe-2.acclaim-euro.net> From: Shawn Hargreaves To: djgpp AT delorie DOT com Subject: Re: Operating System Development Date: Tue, 4 May 1999 10:33:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1460.8) Content-Type: text/plain Reply-To: djgpp AT delorie DOT com "Shawn" 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.