I know of otool -tv
, but I would much rather use the Intel syntax rather than AT&Ts, mainly to easily follow along in a book and not have to look over
To answer your second question, if the code has been compiled into a fat binary with both 64-bit and 32-bit, you can use otool -arch i386 -tv
to disassemble the 32-bit slice of the binary; otool -arch x86_64 -tv
will give you the 64-bit portion (on SnowLeopard, this is also the default behavior if no -arch
flag is passed).
Also note that while otool doesn't support the Intel syntax, gdb (set disassembly-flavor intel
) and XCode (Preferences -> Debugging -> Disassembly Style) do.