About JIT compiling, I have mixed views on this atm. I actually think such a thing would be great for OS dev. (Now just hear me out for a moment!) Make one single binary that loads up through a set of loader binaries, and you have the whole OS running on whatever platforms the loader binaries can load up. You have to put in the right amount of optimizations, and for a kernel you would find it more beneficial to build the whole thing in one go, or in a set of segments. You could then have device drivers work in a similar manner, or be built for just the target language.
Code: Select all
bootloader (x86_64)
> kernel image
> modules
> run kernel
kernel image:
built into kernel (x86_64) at 1st megabyte in memory
modules:
appended to end of kernel
Cheers,
-naota