开发者

Which CPU are using AT&T assembly now? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I'm just curious if AT&T assembly syntax now only exis开发者_JAVA技巧ts in software...


Syntax is how you write stuff down, it's not closely related to the command set or data model of the processor.

For example, you can write the very same sequence of code for an x86 chip in either AT&T or Intel syntax assemblers and it will run identically - the only major difference you'll see is that in AT&T syntax the destination is the second argument and in Intel syntax it is the first argument. Either will compile to the same very hard to read machine code.

Assembly language supported by Visual C++ for writing (hopefully) short asm blocks uses Intel syntax, while AFAIK assembly language supported by GCC uses AT&T syntax.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜