Page 1 of 1

Kernel / HAL / C Library

Posted: Sat Jul 23, 2011 7:23 pm
by mark3094
Hi,

I'm just starting out with the kernel, and I have a small question in relation to integrating the HAL and other libraries.

The way I have it planned in my head, is that I will have the kernel with some basic HAL and C Library functions built in (eg, just enough to print some useful information to screen, basic connsole driver, a method to read files from disk and load them, etc) to keep the kernel as small as possible. I've already built these supporting functions.

Then, with this limited functionality, the kernel can then load a full C library and HAL library.

Does this sound like the right way to do it?

Re: Kernel / HAL / C Library

Posted: Sat Jul 23, 2011 10:56 pm
by Igor1024
Do you mean your stages are right? If you really need to have small kernel so do it.
I really don't see any question there.

Re: Kernel / HAL / C Library

Posted: Sun Jul 24, 2011 2:35 am
by mark3094
It's not so much that the kernel has to be small.

What I'm pondering, is how much should be compiled into the kernel?
I would imagine that performance would be better if there is more compiled directly into the kernel, but would this make it potentially less stable?

I guess I'm asking for what others have experienced when building their kernels. I've already described my thoughts, but as I've mentioned, I'm relatively new at this

Re: Kernel / HAL / C Library

Posted: Sun Jul 24, 2011 5:03 am
by Love4Boobies
We have several pages that will give you a rough idea of the main kernel designs (e.g., monolithic kernels vs. microkernels). This would be a good place to start. Good luck!

Re: Kernel / HAL / C Library

Posted: Sun Jul 24, 2011 11:35 pm
by mark3094
Thanks for your help.

I think hybrid might be the way to go