Disassemble into x86_64 on OSX10.6 (But with _Intel_ Syntax)

后端 未结 5 1920
庸人自扰
庸人自扰 2021-02-08 18:58

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

5条回答
  •  遥遥无期
    2021-02-08 19:25

    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.

提交回复
热议问题