This is the mail archive of the gcc-help@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]

Re: gcc


> 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


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