OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 8:02 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: cc -mi86 ...
PostPosted: Thu Jul 31, 2003 11:00 pm 
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...


Top
  
 
 Post subject: RE:cc -mi86 ...
PostPosted: Fri Aug 01, 2003 11:00 pm 
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...


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group