abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 1 month agoHardware-Aware Coding: CPU Architecture Concepts Every Developer Should Knowblog.codingconfessions.comexternal-linkmessage-square6fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkHardware-Aware Coding: CPU Architecture Concepts Every Developer Should Knowblog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 1 month agomessage-square6fedilink
minus-squarepixeltree@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up0·1 month 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-up0·1 month agotl;dr tl;dr: use a modern compiler.
minus-squarebejean@lemmy.worldlinkfedilinkEnglisharrow-up0·1 month agoDo any compilers NOT unroll loops in high optimization modes? I was under three impression this was usually unnecessary.
minus-squarepixeltree@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up0·1 month 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