10 ms·
He should mention this tool: http://linux.die.net/man/1/pahole http://linux.die.net/man/1/pahole
by rwmj 13y ago
He should mention this tool:
http://linux.die.net/man/1/pahole http://linux.die.net/man/1/pahole
- JoachimSchipper 13y agogcc -Wpadded is very useful, too (its chief downside is that you don't usually want to combine it with -Werror - padding is not always bad.)
- agwa 13y agoYou can always add -Wno-error=padded to disable -Werror just for -Wpadded
- JoachimSchipper 13y agoI seem to have missed that trick. Thanks!
- dllthomas 13y agoYou could always pad manually to clear the warnings.
- jevinskie 13y agoYou beat me to it. =) Here is an introductory article http://lwn.net/Articles/335942/ http://lwn.net/Articles/335942/