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.
void main(void) {
/*code here. Note: You cant use functions like printf.
/*You have to re-write these for your OS
for(;;); /* Hang Here because there's nowhere else to
/* go.
}
Compile with gcc like this:
gcc -O3 -c Kernel.c
Then, link with JLOC like this:
jloc kernel.ld kernel.bin
your linker file (kernel.ld) should look like this: