abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 5 days agoHardware-Aware Coding: CPU Architecture Concepts Every Developer Should Knowblog.codingconfessions.comexternal-linkmessage-square6fedilinkarrow-up169
arrow-up169external-linkHardware-Aware Coding: CPU Architecture Concepts Every Developer Should Knowblog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 5 days agomessage-square6fedilink
minus-squarepixeltreelinkfedilinkEnglisharrow-up12·5 days agoTL:DR: minimize randomness, group variables by access frequency, and unroll loops if your compiler doesn’t do that already
minus-squarecall_me_xale@lemmy.ziplinkfedilinkEnglisharrow-up10·5 days agotl;dr tl;dr: use a modern compiler.
minus-squarebejean@lemmy.worldlinkfedilinkEnglisharrow-up4·5 days agoDo any compilers NOT unroll loops in high optimization modes? I was under three impression this was usually unnecessary.
minus-squarepixeltreelinkfedilinkEnglisharrow-up3·5 days agoNo clue, I was just frustrated with how much useless extended metaphor was in the article and thought I’d save people some time
TL:DR: minimize randomness, group variables by access frequency, and unroll loops if your compiler doesn’t do that already
tl;dr tl;dr: use a modern compiler.
Do any compilers NOT unroll loops in high optimization modes? I was under three impression this was usually unnecessary.
No clue, I was just frustrated with how much useless extended metaphor was in the article and thought I’d save people some time