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

On this topic does anyone know of a good article that shows you you can profile your binary size? Say given binary X object Y takes up 60% and in object Y source file Z takes up the most. Or a list of common coding practices in [language] that cause the binary size to significantly increase?


A blog on using pahole to find holes/padding the compiler adds to your structs

http://zecke.blogspot.com/2009/10/what-is-size-of-qlistdata-...


try the 'nm' program on your binaries.


or better use the 'size' program to give how much each .o/.obj file takes.

You can also use 'strip' to remove debug information not needed (normally appended to the end of the file).




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

Search: