<p>How does one do this?</p>
<p>If I want to analyze how something is getting compiled, how would I get the emitted assembly code?</p>

Use the
-S
switch:
```
```
g++ -S main.cpp
```
```
Or also with
```
gcc
```
:
```
```
gcc -S main.c
```
```
Also see
this
.