4 ms·
If you want to see the assembly code a compiler produces from high level languages, Compiler Explorer is awesome for that (https://gcc.godbolt.org/ https://gcc.
by RcouF1uZ4gsC 6y ago
If you want to see the assembly code a compiler produces from high level languages, Compiler Explorer is awesome for that (https://gcc.godbolt.org/ https://gcc.godbolt.org/)
You type your C/C++ code in the left pane, and it generates assembly in the right pane as you type. There is color coding to show you which C/C++ code correlates to the assembly code. If you hover over an assembly instruction such as mov, a tooltip appears telling you what it does.
It makes exploring what the compiler is doing easy and a lot of fun