This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC and memory segments
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Petar Penchev <ptr at sd-bul dot bg>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 23 Sep 2003 15:26:15 -0700
- Subject: Re: GCC and memory segments
- References: <001701c381b1$13819600$7303230a@PTR>
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