3 ms·
Made me think of "C compiler used as bootloader, that eats source code for Linux kernel while booting, and boots that". Ah, still on the net: https://bellard.
by RetroTechie 3y ago
Made me think of "C compiler used as bootloader, that eats source code for Linux kernel while booting, and boots that".
Ah, still on the net:
https://bellard.org/tcc/tccboot.html https://bellard.org/tcc/tccboot.html
Uses TinyCC in place of a bootloader. Of course that would require other software like a shell / BusyBox or similar besides the kernel. But after booting on-the-fly-compiled-Linux that seems like a minor issue.
Project is from 2004. Surely doing this with source code for current(ish) Linux kernels would be more involved? Especially those including Rust code. :-)
Would be fun to have a more up to date something of the above. Anyone?