This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc
- To: olix2000 at hotmail dot com
- Subject: Re: gcc
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 10 Mar 2000 01:37:50 +0100
- CC: gnu at gnu dot org, help-gcc at gnu dot org
- References: <200003091932.OAA06974@delysid.gnu.org>
> I am interested in writing a boot sector. I would like to use C and asm to
> do this. The majority of the code for a boot sector is 16 bit code. However,
> gcc (under linux) produces 32 bit code. Could you please tell me how to
> force the gcc compiler to produce 16 bit code?
GCC currently does not support a 16 bit target, at least not for the
x86 architecture. So you cannot use GCC for your boot sector.
Martin