Page 1 of 1

How to compile the kernel???

Posted: Sat Oct 27, 2001 11:00 pm
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?

RE:How to compile the kernel???

Posted: Sat Oct 27, 2001 11:00 pm
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

RE:How to compile the kernel???

Posted: Sat Oct 27, 2001 11:00 pm
by Lars
console.c is a file with to procedures one for
clear the screen, the other for print something to
the screen.