As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center提供指导。
已关闭8年。
对我来说,英特尔语法更容易阅读。如果我只关注Intel语法来遍历汇编林,我会错过任何事情吗?我有什么理由要切换到AT&T(除了能够读取其他人的AT&T程序集之外)?我的第一个线索是gdb默认使用AT&T。
如果这很重要,那么我的重点仅在于与Linux/BSD和C语言有关的任何关系汇编和语法。
已关闭8年。
对我来说,英特尔语法更容易阅读。如果我只关注Intel语法来遍历汇编林,我会错过任何事情吗?我有什么理由要切换到AT&T(除了能够读取其他人的AT&T程序集之外)?我的第一个线索是gdb默认使用AT&T。
如果这很重要,那么我的重点仅在于与Linux/BSD和C语言有关的任何关系汇编和语法。
最佳答案
彼此之间确实没有优势。我同意,尽管Intel语法很容易阅读。请记住,AFAIK,所有GNU工具都可以选择也使用Intel语法。
看起来您可以通过以下方式使GDB使用Intel语法:
设置可拆卸口味的英特尔
GCC可以使用-masm=intel
执行Intel语法。