hardwareteamsM to C Programming for Low Level HardwareEnglish · 1 year agoHow to Write Function-Like Preprocessor Macroswww.youtube.comexternal-linkmessage-square4fedilinkarrow-up13arrow-down10
arrow-up13arrow-down1external-linkHow to Write Function-Like Preprocessor Macroswww.youtube.comhardwareteamsM to C Programming for Low Level HardwareEnglish · 1 year agomessage-square4fedilink
minus-squarenomadjoanne@lemmy.worldlinkfedilinkEnglisharrow-up0·1 year agoIsn’t inline technically just a suggestion to the compiler though? It’s not necessarily guaranteed to inline it.
minus-squarea2800276@lemmy.worldlinkfedilinkEnglisharrow-up2·1 year agoSure. So? If the compiler feels it’s more efficient not to inline, who am I to judge? As far as I know there’s nothing keeping the compiler from recognizing repetitive code generated by macros and factoring out into a single assembly routine…
Isn’t
inline
technically just a suggestion to the compiler though? It’s not necessarily guaranteed to inline it.Sure. So? If the compiler feels it’s more efficient not to inline, who am I to judge? As far as I know there’s nothing keeping the compiler from recognizing repetitive code generated by macros and factoring out into a single assembly routine…