Page 1 of 1

cc -mi86 ...

Posted: Thu Jul 31, 2003 11:00 pm
by Grozilla
I downloaded the Minix sources and there I saw that cc was called with -mi86 option to generate 8086/286 code.
My gcc version doesn't support this option... only i386 and above (wich generates 32bit code).
Does anyone know how can I make my gcc compiler (3.2) or another one (another gcc version) to support -mi86 option (to generate 16bit code).
I also read in as manual (info as) that gcc can generate 16bit code, but it didn't told how :)

OK... Thanks...

RE:cc -mi86 ...

Posted: Fri Aug 01, 2003 11:00 pm
by Jamethiel
One of the assumptions of the entire GNU project, and GCC in particular, is that all the world is a 32-bit or wider system.

I do not for an instant believe that GCC can output code for a 286.

GNU as can assemble something that can run in a 16-bit code segment, but I don't remember hearing that it could handle 16-bit addressing modes.

I recommend that you look for another C compiler. Try looking around the ELKS project, if it still exists, they used a 16-bit compiler...