Re:AT&T Syntax versus Intel Syntax
by colejohnson66 on Sunday November 13, 2022 @02:14PM
(#33586339)
That “logical” order is only because you’re trying to read it like a sentence (“mov/add ebx into eax”) when you should be reading it like a formula or what it actually is - code. Also, considering Intel created the chip, it makes sense that they should decide how the assembly syntax should be, not AT&T.
The only reason “AT&T syntax” exists for x86 is because people working at AT&T refused to accept Intel’s manual as the authoritative reference on the syntax, and, instead, decided to follow the convention of the PDP, Motorola, etc. family and friends. Hence why `as` (and subsequently `gas`) have that as the default.
The only reason “AT&T syntax” exists for x86 is because people working at AT&T refused to accept Intel’s manual as the authoritative reference on the syntax, and, instead, decided to follow the convention of the PDP, Motorola, etc. family and friends. Hence why `as` (and subsequently `gas`) have that as the default.