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

There isnt some forcelinline attribute in gcc?


Your parent is probably not talking about gcc, or even about C; gcc does indeed have __attribute__((always_inline)).


There is, but in practice just normal inline, or even trusting the compiler to decide what to inline itself, are just fine.

The problem comes when you are using other languages (scripting ones like Python come to mind) where inlining is but a dream (ignoring systems like PyPy).


Yeah, #define.




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

Search: