Y
Hacker News
new
|
ask
|
show
|
jobs
by
chii
977 days ago
would it have made a difference if the function was static? The compiler would then be able to deduce that it isn't used anywhere else, and thus could do this inline optimization.
1 comments
thesnide
976 days ago
Gcc actually totally does that. Even doing it while not static by copy/pasting the function and enabling further optims.
to me modern compilers are like voodoo magic
link
to me modern compilers are like voodoo magic