Thats assuming that the compiler works like that, being
able to mark something as inline in your code, making it
explicit..is handy, even if this is only a suggestion to the
compiler. Macros have other uses, not simply for expanding
a functions...unrolling loops. You need only look at whats
possible with macros in C++.
Inline assembly on the other hand, gives you as much control
over code as your going to get - dont assume that jst cuz
a compiler can do this, that and the other, that it will...and
despite modern compilers being very good...they arent
perfect.
able to mark something as inline in your code, making it
explicit..is handy, even if this is only a suggestion to the
compiler. Macros have other uses, not simply for expanding
a functions...unrolling loops. You need only look at whats
possible with macros in C++.
Inline assembly on the other hand, gives you as much control
over code as your going to get - dont assume that jst cuz
a compiler can do this, that and the other, that it will...and
despite modern compilers being very good...they arent
perfect.