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

Good question, I unfortunately don't have a link to give you, or fine details, but GCC does hot/cold partitioning and applies different optimization level to hot and cold code blocks. IIRC, it uses the level given on the command line for hot code, and -Os for cold code.


I see nothing in the documentation to suggest that. The only thing I’m aware compilers do for hot/cold is partitioning to improve locality.




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

Search: