Do you know of a good c or c++ compiler for making OSes?

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
Ben321
Posts: 1
Joined: Fri Dec 29, 2023 10:27 am

Do you know of a good c or c++ compiler for making OSes?

Post by Ben321 »

Preferably one that will run in 32bit Windows, but output 16bit code. I don't want to have to do all the programming in DOS.
Octocontrabass
Member
Member
Posts: 5560
Joined: Mon Mar 25, 2013 7:01 pm

Re: Do you know of a good c or c++ compiler for making OSes?

Post by Octocontrabass »

Why do you want 16-bit code? There are several different compilers that can produce "16-bit code", but whether they'll work for you depends on what you're trying to do...
iProgramInCpp
Member
Member
Posts: 81
Joined: Sun Apr 21, 2019 7:39 am

Re: Do you know of a good c or c++ compiler for making OSes?

Post by iProgramInCpp »

Clang and GCC are perfectly fine compilers that are being used to develop OSes. However, they don't output 16-bit code unless you specifically hack them to do so.

Why exactly do you want a compiler that outputs 16-bit code? What is the purpose? This gives vibes of the XY problem.
You don't need to write code that runs on 16-bit x86 to write an OS. That period is long gone.
Hey! I'm developing two operating systems:

NanoShell --- A 32-bit operating system whose GUI takes inspiration from Windows 9x and early UNIX desktop managers.
Boron --- A portable SMP operating system taking inspiration from the design of the Windows NT kernel.
Post Reply