delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/04/05:33:12

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE3013661FA@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
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)
Reply-To: djgpp AT delorie DOT com

"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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019