0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 7 months agoSupreme leader madsh.itjust.worksimagemessage-square93fedilinkarrow-up1630arrow-down128
arrow-up1602arrow-down1imageSupreme leader madsh.itjust.works0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 7 months agomessage-square93fedilink
minus-squarerambling_lunatic@sh.itjust.workslinkfedilinkarrow-up22·7 months agoYeah but a lot of that C code has inline assembly so it’s more like 5-10% asm.
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up11arrow-down3·7 months agoInline assembly is such a shit practice. But c++ bad.
minus-squareMananasi@feddit.nllinkfedilinkarrow-up8·7 months agoSometimes you can’t get around it though.
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up2arrow-down1·7 months 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.
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.