Real mode compiler

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
Tom

Real mode compiler

Post by Tom »

Hello,
well after having my computer down for 2 weeks because the BIOS chip was fried ( NEVER TRY TO UPGRADE YOU BIOS :o ), I thought that PMode is too much for just trying to get an OS started.

So, does anyone know of a real mode compiler that uses A.OUT format & a linker with it that makes realmode binary code?

Thank you
Tom

Re:Real mode compiler

Post by Tom »

Oh, yea, and it has to run on Linux
K.J.

Re:Real mode compiler

Post by K.J. »

I don't think one for C exists. But NASM can assemble for 16bit or 32bit via the [bits 16] or [bits 32] statement.

K.J.
Tom

Re:Real mode compiler

Post by Tom »

oh, ty but I finaly got into PMode. so I tried to delete this but it said i couldn't
Tom

Re:Real mode compiler

Post by Tom »

ok I changed my mind :o . Is there a GNU c compiler for DOS that'll makes 16-bit real mode binary code?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Real mode compiler

Post by Pype.Clicker »

not to my humble knowledge ... maybe in embedded C compilers (but they rarely supports the full ANSI C, though ...)
Tim

Re:Real mode compiler

Post by Tim »

Borland has early versions of Turbo C++ and Borland C++ available for free from their web site. But they're not GNU, as requested.
Schol-R-LEA

Re:Real mode compiler

Post by Schol-R-LEA »

You may want to do a search on the Free Compiler List, as it is likely to have several 16-bit C compilers.
crazybuddha

Re:Real mode compiler

Post by crazybuddha »

Why GNU only??
Tom

Re:Real mode compiler

Post by Tom »

Because I want my OS GNU
frank

Re:Real mode compiler

Post by frank »

I think gnu never made a real mode compiler...
Post Reply