From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: olix2000@hotmail.com Cc: gnu@gnu.org, help-gcc@gnu.org Subject: Re: gcc Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <200003100037.BAA10358@loewis.home.cs.tu-berlin.de> References: <200003091932.OAA06974@delysid.gnu.org> X-SW-Source: 2000-q1/msg00358.html Message-ID: <20000401000000.wJDRJSJHYR3fz93fKaed4TFvuvrmX18GnU0cb_myVTs@z> > 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