Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They also tend to have ways to override those heuristics (e.g., `__attribute__((noinline))` in GCC).


go has //go:noinline for the same effect. I don't think you need these weird trampoline calls and they are probably somewhat fragile since a future compiler might figure out how to inline through them.


Nobody needs to bounce through trampoline calls like this, but for people willing to chase a modest code size decrease like the 6% in the article, it's worth knowing that how your code is arranged may have a larger effect on program size than you're used to from other compiled languages.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: