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

Uli Drepper has this tool which you can use to annotate source code with explanations of which optimisations are applied. In this case it would rely on GCC recognizing branches which are hard to predict (eg. a branch in an inner loop which is data-dependent), and I'm not sure GCC is able to do that.

https://github.com/drepper/optmark



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

Search: