Page 1 of 1

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

Posted: Fri Dec 29, 2023 10:36 am
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.

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

Posted: Tue Jan 16, 2024 2:11 am
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...

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

Posted: Sat Mar 02, 2024 3:58 am
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.