GCC and memory segments

Jim Wilson wilson@specifixinc.com
Tue Sep 23 22:29:00 GMT 2003


Petar Penchev wrote:
> Can anybody tell me how to make GCC to use memory segments?
> I mean memory segments like x86 in real mode. 

Gcc doesn't support near/far pointers.  Also, gcc doesn't have a mode 
for only emitting 16-bit 286 instructions.  Gcc can support segmented 
systems, if appropriate code is written for them, but we don't have such 
support for DOS.

If you really need to write DOS programs, you are probably better off 
using a DOS extender, like djgpp, than trying to make gcc into a DOS 
compiler.  See for instance
	http://www.delorie.com/djgpp
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list