0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 9 months agoSupreme leader madsh.itjust.worksimagemessage-square33fedilinkarrow-up111arrow-down12
arrow-up19arrow-down1imageSupreme leader madsh.itjust.works0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 9 months agomessage-square33fedilink
minus-squareozymandias117@lemmy.worldlinkfedilinkEnglisharrow-up1·9 months agoThere’s assembly and makefiles too Less of a joke answer, there has been work to allow Rust bindings for drivers.
minus-squareBartyDeCanter@lemmy.sdf.orglinkfedilinkarrow-up0·9 months agoAccording to the github analysis, the kernel repository is: C 98.3% Assembly 0.7% Shell 0.4% Makefile 0.2% Python 0.2% Perl 0.1% Other 0.1% So yeah, its basically all C, plus a tiny bit of assembly for very low level bootstrapping and some helper scripts.
minus-squarerambling_lunatic@sh.itjust.workslinkfedilinkarrow-up0·9 months agoYeah but a lot of that C code has inline assembly so it’s more like 5-10% asm.
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up0·9 months agoInline assembly is such a shit practice. But c++ bad.
minus-squareMananasi@feddit.nllinkfedilinkarrow-up1·9 months agoSometimes you can’t get around it though.
Is it all C?
There’s assembly and makefiles too
Less of a joke answer, there has been work to allow Rust bindings for drivers.
According to the github analysis, the kernel repository is:
So yeah, its basically all C, plus a tiny bit of assembly for very low level bootstrapping and some helper scripts.
Yeah but a lot of that C code has inline assembly so it’s more like 5-10% asm.
Inline assembly is such a shit practice. But c++ bad.
Sometimes you can’t get around it though.