|
|
|
|
|
by molticrystal
1054 days ago
|
|
>hw-rpi3-5 Hello World bypassing clib altogether, and talking direcly to the hardware. >Apparently this is a no-no, even if it is theoretically more efficient. The bare-metal and OS dev folk are pretty much limited to using this method mov r7, #4 /\* raw system call for write */
swi #0 /* print without using clib \*/
This seems to be just a call into the linux kernel, not bare metal, essentially what the clib does itself. You have to do this to do functions the kernel supports but haven't been ported to clib yet.I haven't really looked deep into it but a google search came up with this for bare metal text printing https://github.com/bztsrc/raspi3-tutorial/tree/master/0A_pcs... |
|
"You have to do this to do functions the kernel supports but haven't been ported to clib yet."
This is insightful. I'll reflect it in my updated text.