This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC and memory segments


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]