OSDev.org https://forum.osdev.org/ |
|
cc -mi86 ... https://forum.osdev.org/viewtopic.php?f=1&t=1894 |
Page 1 of 1 |
Author: | Grozilla [ Thu Jul 31, 2003 11:00 pm ] |
Post subject: | cc -mi86 ... |
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... |
Author: | Jamethiel [ Fri Aug 01, 2003 11:00 pm ] |
Post subject: | RE:cc -mi86 ... |
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... |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |