سؤال

How can I tell objdump to emit assembly in Intel Syntax rather than the default AT&T syntax?

هل كانت مفيدة؟

المحلول

What you're looking for is -M intel. Use it as follows.

objdump -M intel -d program_name

نصائح أخرى

If you want Intel mnemonic codes as well (instead of AT&T mnemonic codes), you can use:

objdump -M intel intel-mnemonic -D <program's-object-file>

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top