How does one do this?
If I want to analyze how something is getting compiled, how would I get the emitted assembly code?
Well, as everyone said, use -S option. If you use -save-temps option, you can also get preprocessed file(.i), assembly file(.s) and object file(*.o). (get each of them by using -E, -S, and -c.)