β² 731 βΌ Supreme leader mad (sh.itjust.works) submitted 2 years ago by 0x4E4F@sh.itjust.works to c/linuxmemes@lemmy.world 101 comments fedilink hide all child comments
[β] BartyDeCanter@lemmy.sdf.org 85 points 2 years ago (2 children) According 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. permalink fedilink source parent hideshow 4 child comments replies: [β] rambling_lunatic@sh.itjust.works 30 points 2 years ago (1 child) Yeah but a lot of that C code has inline assembly so it's more like 5-10% asm. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 13 points 2 years ago (1 child) Inline assembly is such a shit practice. But c++ bad. permalink fedilink source parent hideshow 2 child comments replies: [β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent [β] Blackmist@feddit.uk 1 point 2 years ago (2 children) Wot no Delphi? permalink fedilink source parent hideshow 4 child comments replies: [+] FlorianSimon@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Yeah, indeed, why not π€... permalink fedilink source parent
[β] rambling_lunatic@sh.itjust.works 30 points 2 years ago (1 child) Yeah but a lot of that C code has inline assembly so it's more like 5-10% asm. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 13 points 2 years ago (1 child) Inline assembly is such a shit practice. But c++ bad. permalink fedilink source parent hideshow 2 child comments replies: [β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent
[β] riodoro1@lemmy.world 13 points 2 years ago (1 child) Inline assembly is such a shit practice. But c++ bad. permalink fedilink source parent hideshow 2 child comments replies: [β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent
[β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent
[β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent
[β] Blackmist@feddit.uk 1 point 2 years ago (2 children) Wot no Delphi? permalink fedilink source parent hideshow 4 child comments replies: [+] FlorianSimon@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Yeah, indeed, why not π€... permalink fedilink source parent
[+] FlorianSimon@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Yeah, indeed, why not π€... permalink fedilink source parent