I am looking for a C compiler that runs on mac and it needs to compile to 8086 16 bit real mode machine code.
Asked
Active
Viewed 602 times
0
-
1What kind of platform are you targeting exactly – Matti Virkkunen Feb 06 '12 at 20:31
-
I'm building my own OS and I want to write the kernel in C rather than using assembly all the time – Feb 06 '12 at 20:36
-
And you want to run it in 16-bit mode? – Matti Virkkunen Feb 06 '12 at 20:37
-
Yep I want the entire thing to be in 16bit real mode :) (it's more a proof of concept than anything) – Feb 06 '12 at 20:37
-
Why? I hope you realize programming 16 bit real mode is a lot more painful than programming for 32 bit... – R.. GitHub STOP HELPING ICE Feb 06 '12 at 21:07
1 Answers
2
You can try using Borland's Turbo C inside DosBox or something like that. That way you can actually run whatever you compile.
I've run some antique 16 bit DOS code under it and it works flawlessly.

Francisco Soto
- 10,277
- 2
- 37
- 46