Which CPU are using AT&T assembly now? [closed]
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.
精彩评论