This tutorial shows how to write my own simple Operating System:
Write Your Own Operating System Tutorial: http://joelgompert.com/OS/TableOfContents.htm
Every thing is OK, but developing language is Assembly. I want develope my simple OS with C programming language.
I want a C Compiler that convert my C source codes to Assembly sources and then I compile assmebly files with NASM.
Compiler should can create assembly files that compiled by NASM.
C source files that converted to assembly source files with GCC (gcc -S OS.c masm=intel) fails when I compilng them with NASM.
I dont use any C standard libraries even stdio.h or math.h.
I want a compiler that
- Converts C source codes to Assembly sources.
- Or a compiler that creates flat binaries (like
NASMorFASMoutputs) from C sources.
Which C compiler should I use for creating my own simple OS?