3 ms·
Performance as well as correctness. Looking at generated asm tells you what was inlined, which variables are stored in registers, whether your common subexpress
by blt 11y ago
Performance as well as correctness. Looking at generated asm tells you what was inlined, which variables are stored in registers, whether your common subexpressions were optimized, etc. You can often tweak your C code to generate the assembler you want, without needing to actually write asm.
This is especially important in C++, where you depend on the compiler's optimization ability a lot more.
- vardump 11y agoIndeed, sometimes C++ is utterly incomprehensible without looking at assembler output. A subtle bug in C++ can be obvious in a split second in disassembler view.