objdump

When objdumping, easiest to demangle (-C) and interleave with the source (-S) where possible. Then you can check whether the compiler applied that optimisation you were hoping for:

objdump -CS --disassemble ./program > out.txt