A little hair-splicy, but an assembly-free bootloader is definitely doable on some platforms – Cortex-M processors load the stack pointer from the vector table, and the initialized memory setup can be taken care of with memcpy.
A little hair-splicy, but an assembly-free bootloader is definitely doable on some platforms – Cortex-M processors load the stack pointer from the vector table, and the initialized memory setup can be taken care of with memcpy.
Reminds me of not long after I started using Linux. I thought the kernel was “just a program” like
catand tried to run the kernel from the terminal, only to be disappointed when a new kernel in fact did not start running inside the terminal window.