Kernel / HAL / C Library

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
User avatar
mark3094
Member
Member
Posts: 164
Joined: Mon Feb 14, 2011 10:32 pm
Location: Australia
Contact:

Kernel / HAL / C Library

Post 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?
Igor1024
Member
Member
Posts: 32
Joined: Mon Apr 11, 2011 12:19 am

Re: Kernel / HAL / C Library

Post 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.
User avatar
mark3094
Member
Member
Posts: 164
Joined: Mon Feb 14, 2011 10:32 pm
Location: Australia
Contact:

Re: Kernel / HAL / C Library

Post 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
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Kernel / HAL / C Library

Post 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!
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
mark3094
Member
Member
Posts: 164
Joined: Mon Feb 14, 2011 10:32 pm
Location: Australia
Contact:

Re: Kernel / HAL / C Library

Post by mark3094 »

Thanks for your help.

I think hybrid might be the way to go
Post Reply