cc -mi86 ...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Grozilla

cc -mi86 ...

Post 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...
Jamethiel

RE:cc -mi86 ...

Post 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...
Post Reply