GDB Disassembly Output – Optimization

Learn how to compile, load, and execute the GDB disassembly program with code optimization.

Disassembly in the optimization mode

Let’s review the disassembly generated by compiling the program in the optimization mode. We will revisit the source code first and review the flags needed to trigger the optimization.

Source code

The source code of the arithmetic program is given below:

Get hands-on with 1200+ tech skills courses.