Guest Ramm Posted May 6, 2007 Share Posted May 6, 2007 I was just curious...how is a kernel coded? Does it use a standard code or something else? Wikipedia didn't answer much. Link to comment Share on other sites More sharing options...
Superhai Posted May 6, 2007 Share Posted May 6, 2007 You can program most parts in C or any other lower high level languages. Some critical parts are made in assembler. Link to comment Share on other sites More sharing options...
Guest Ramm Posted May 6, 2007 Share Posted May 6, 2007 How is it structured? Is it split into sections depending on the load order of hardware or something? Link to comment Share on other sites More sharing options...
idelovski Posted May 6, 2007 Share Posted May 6, 2007 Look at this web site: What is Mac OS X? The author wrote the book "Mac OS X Internals". Link to comment Share on other sites More sharing options...
asap18 Posted May 6, 2007 Share Posted May 6, 2007 If you ever have looked at the linux kernel, it is modularized. But it realy depends on what type of kernel you have, monolithic, microkernel etc. Link to comment Share on other sites More sharing options...
munky Posted May 6, 2007 Share Posted May 6, 2007 I'd say most likely 90% or more is standard C code, with certain parts written in Assembly (the lowest level you can program at) for performance reasons. Practically no-one writes all-assembler any more like in the old days - its just too damn hard. Games often have assembler sections to speed up where it counts. As for structure, in a very generalised way, i'd say most software which deals with low-level stuff like direct hardware access will be written in layers. Each layer extends and enhances the functions of the lower layer, and provides services to the next layer above. For more details on this way of thinking, look into the ISO/OSI 7-layer model proposed for TCP/IP and the 5-layer model which was eventually adopted. Then again, im no kernel haxx0r, so I dont really know.. i'd like to hear a good explanation if anyone has one? Link to comment Share on other sites More sharing options...
Guest Ramm Posted May 9, 2007 Share Posted May 9, 2007 Thanks people, yes I too would like to here an explanation from someone like semthex or the like Link to comment Share on other sites More sharing options...
Recommended Posts