• nomadjoanne@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Isn’t inline technically just a suggestion to the compiler though? It’s not necessarily guaranteed to inline it.

    • a2800276@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      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…