How to compile the kernel???

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
Lars

How to compile the kernel???

Post by Lars »

Hi, I have a Kernel with the files kernel.c, io.h,
io.c, console.h and console.c how must I this compile
with djgpp to kernel.bin?
Chase

RE:How to compile the kernel???

Post by Chase »

>On 2001-10-28 06:35:34, Lars wrote:
>Hi, I have a Kernel with the files kernel.c, io.h,
>io.c, console.h and console.c how must I this compile
>with djgpp to kernel.bin?

Not really enough info to tell, is console.c a seperate program?
If so, do you have a loader that will load multiple file?

If they need to both be in memory you *could* copy the binaries
into one file.

If you're just looking for compiler switches that people
writing kernels typically use, the first guide starts with just
a C kernel, http://www.osdev.org/developers/guide01/index.html

A lot is going to depend on your loader...

-Chase
Lars

RE:How to compile the kernel???

Post by Lars »

console.c is a file with to procedures one for
clear the screen, the other for print something to
the screen.
Post Reply