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

I wrote a clang plugin to look for opportunities across a 10M line codebase and there was surprisingly little to be found. Why? Because on 64-bit Linux, the current C++ ABI mandates quite large alignment, especially once you are embedding things inside other things. Packing is still sometimes useful in speeding things up, but tends to require bitfields and flattening structs inside structs into a single struct, etc.


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

Search: