hardwareteamsM to C Programming for Low Level HardwareEnglish · 2 years agoHow to Write Function-Like Preprocessor Macroswww.youtube.comexternal-linkmessage-square4fedilinkarrow-up14arrow-down10
arrow-up14arrow-down1external-linkHow to Write Function-Like Preprocessor Macroswww.youtube.comhardwareteamsM to C Programming for Low Level HardwareEnglish · 2 years agomessage-square4fedilink
minus-squarenomadjoanne@lemmy.worldlinkfedilinkEnglisharrow-up0·2 years agoIsn’t inline technically just a suggestion to the compiler though? It’s not necessarily guaranteed to inline it.
minus-squarea2800276@lemmy.worldlinkfedilinkEnglisharrow-up2·2 years 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…