Reconstructing C/C++ Code
Learn how to reconstruct a code in C/C++ language with the help of the GDB disassembly output in non-optimization mode.
We'll cover the following...
We'll cover the following...
Reconstructing mixed assembly / pseudocode code
Let’s reconstruct the line-by-line pseudocode, shown as comments against the assembly language code.
This code calculates the effective address of a, which it stores in register %rax. It then assigns the %rax register value to the integer pointer pa. We do the same process for b and store the %rax register value to the integer pointer pb.
The code snippet above assigns 1 to the indirect ...