0x4E4F to linuxmemes@lemmy.worldEnglish · 1 year agoSupreme leader madimagemessage-square102fedilinkarrow-up1766arrow-down133
arrow-up1733arrow-down1imageSupreme leader mad0x4E4F to linuxmemes@lemmy.worldEnglish · 1 year agomessage-square102fedilink
minus-squareBartyDeCanter@lemmy.sdf.orglinkfedilinkarrow-up85·1 year 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_lunaticlinkfedilinkarrow-up30·1 year agoYeah but a lot of that C code has inline assembly so it’s more like 5-10% asm.
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up16arrow-down3·1 year agoInline assembly is such a shit practice. But c++ bad.
minus-squareMananasi@feddit.nllinkfedilinkarrow-up11·1 year agoSometimes you can’t get around it though.
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up2arrow-down1·1 year agoAfaik MSVC forbids it and it’s one of the very few nice things about c++ on windows. If you need to write assembly don’t fucking do it in a cpp file. Create a header, an assembly file, assemble it and link to it.
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.
Afaik MSVC forbids it and it’s one of the very few nice things about c++ on windows.
If you need to write assembly don’t fucking do it in a cpp file. Create a header, an assembly file, assemble it and link to it.
Wot no Delphi?
Removed by mod
Yeah, indeed, why not 🤔…