Date: Wed, 11 Feb 1998 18:40:12 -0800 (PST) Message-Id: <199802120240.SAA17054@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: mgaugy AT ix DOT netcom DOT com, djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Cross-Platform Porting from DJGPP Precedence: bulk At 09:34 2/10/1998 -0800, Michael Gaugy wrote: >Howdy, > > I am working on an OS that I have developed on my own. I would like >to use >DJGPP to develop parts of the system that are just too long to >hand-write in assembly. >The OS runs in native 32-bit mode with full protection on 386+ machines. > > Can the DJGPP port of GCC be used to generate code that does NOT have >the >protected-mode entry and exit points tacked on. Sure, it's just a matter of linking with startup code that you've written yourself. Looking at the `ld' docs will probably make that task clear. You may also want to use a binary format other than COFF. That will require reconfiguring and rebuilding the Binutils, but that's apparently not too hard. > Also, since I am considering porting the GCC compiler itself, can >anyone point to >where I can find the info. I found docs on how to change the machine >description files, >but nothing on setting the actual OS-specific configuration The whole second half of the GCC documentation talks solely about porting. As I understand it, there are a few files which go into a configuration. I believe the one you are interested in is the host header file. This is described in the Info node "Config". There is also a host-specific Makefile fragment, see the "Fragments" node. Nate Eldredge eldredge AT ap DOT net