Kernel Linking Question
Posted: Sat Feb 19, 2011 6:51 pm
If I wanted to build some separate modules of code such as a kassert.c, kstring.c, kthread.c, etc. Do I build the relocatable object files the same way as I would for user applications, until the point of needing to actually creating the flat binary file during the link?
Currently, I have a loader.s and a kernel.c file that compose the entire EnigmaOS. The loader.s asm file contains stuff that makes GRUB happy and calls Kernel_Main of course. The kernel.c has Kernel_Main, Put_Char, strlen, Print_String, and Clear_Screen already
This is really cool, but I think this code is really ugly just sitting in one file. I need some Modularization!!
Currently, I have a loader.s and a kernel.c file that compose the entire EnigmaOS. The loader.s asm file contains stuff that makes GRUB happy and calls Kernel_Main of course. The kernel.c has Kernel_Main, Put_Char, strlen, Print_String, and Clear_Screen already
This is really cool, but I think this code is really ugly just sitting in one file. I need some Modularization!!