objdump equivalent on macOS

Hi, I have just started today with assembler in college, we use linux in class, so the teacher is teaching us linux's commands. To disassemble, he have told us to use

objdump, but it doesn't work on macOS.

Is there an equivalent for disassemble on mac?

Thanks, Jesús

Accepted Reply

otool does the job of objdump for Mach-O binary files, MacOS's equivalent to Linux's ELF. Type

$ man otool

in Terminal.

Replies

otool does the job of objdump for Mach-O binary files, MacOS's equivalent to Linux's ELF. Type

$ man otool

in Terminal.

The short answer is ...

otool -tvV a.out

For more information, please read: https://stackoverflow.com/a/26169846/3755348

Post not yet marked as solved Up vote reply of kylu Down vote reply of kylu