Other Compilers

From OSDev Wiki

Jump to: navigation, search

This page is a work in progress!

In theory, you can use any language for OS development. However, having a suitable compiler is a pre.

Compiler requirements

In theory you can use any compiler for OS development. However, the output from the linker at the end must be loadable by what ever boot loader you decide to use. The compiler must also be able to exclude OS dependent libraries from the final build.

ToDo: What other features are required?

Useful compilers

Other compilers that can be used for OS development:

  • Borland Turbo C - Only useful for 16bit OSes - Available from the Borland Museum
  • Free Pascal Compiler - Useful for 32-bit OSes. Available at www.freepascal.org. Only issue is that you need to write your own RTL to not call system functions.
  • TinyCC Available at http://www.tinycc.org .
  • FreeBasic - 32-bit BASIC compiler (not an interpreter) that has many new improvements that will help in the OS construction as pointers and inline assembly, Available at http://www.freebasic.net
  • Intel C/C++ Compiler. Commercial (free 30-days trial). Avaliable for Linux, Windows, and OS X. It is very compatibile with MSVC++ (I haven't spent even an hour to change compiler) and GCC (as they say). Famed for it's heavy optimisation. Targets IA-32, x86-64, IA-64, and XScale. Recommended by Intel for systems and applications programming (info on this would be helpful). [1]
  • PCC - [2]
  • ToDo: What other compilers can be used for OS development (excluding those listed in Category:Compilers)
Personal tools