We'll disassemble our binary for analysis using the following steps:
- Type the following in the open Terminal session and review the output:
$ ndisasm -a -p intel ch04-example
- Next, type the following in the open Terminal session and examine the output:
$ objdump -D -M intel ch04-example
- When you have finished reviewing the output, type the following in the open Terminal session and study the output:
$ objdump -d -M intel ch04-example
- After you're done reviewing the output, run the following command, taking special care to notice the different filename. Study the output after running the command:
$ objdump -d -M intel ch04-example.o