3 ms·
They also tend to have ways to override those heuristics (e.g., `__attribute__((noinline))` in GCC).
by a_e_k 6y ago
They also tend to have ways to override those heuristics (e.g., `__attribute__((noinline))` in GCC).
- singron 6y agogo 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.
- jeffbee 6y agoNobody 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.