I\'m trying to understand how stack alignment works as described in what is "stack alignment"? but I have trouble getting a small example to demonstrate the said b
You can check how extra memory is allocated for your data structure using a tool called pahole http://packages.debian.org/lenny/dwarves . It shows you all the holes of your program: the size of your data if you sum it up and the real size allocated at your stuck