Is there a way—much like viewing the result of preprocessing with gcc -E—to see what my objects look like once compiled into object files?
gcc -E
I
For GCC compiled executables, checkout Pahole. It will show you how the compiler laid out your structs/classes and whether or not they have "holes" in them. Holes are padding due to memory alignment rules.