3 ms·
A cross compiler is easy enough to set up with clang too (just specify the -target command line option). I just think that when starting out in kernel developm
by messe 6y ago
A cross compiler is easy enough to set up with clang too (just specify the -target command line option).
I just think that when starting out in kernel development, you're likely going to be dealing with linker scripts for likely the first time. It's been a while since I tried rust for this, but C generates pretty clean object files, so the linker scripts from the OSDev wiki can often be copied verbatim.
- steveklabnik 6y agoThat’s fair re:clang, seems like gcc is used way more often in tutorials. I don’t think that the linker script stuff ends up different but it’s been a minute since I started from scratch.