Live data from Hacker News

AT&T Syntax versus Intel Syntax (2001)

cs.mcgill.ca

1–10 of 112 posts

Re: AT&T Syntax versus Intel Syntax (2001)

#4
In a dumb idea to depend only on GAS, before it had good support for Intel syntax, I ported some code from Intel syntax into AT&T many moons ago, quite dumb idea, if i was doing it today I would have listed nasm or yasm as a requirement and be done with it.

Re: AT&T Syntax versus Intel Syntax (2001)

#5
post #2

Hmm. "AT&T"? I thought it at least came from DEC via the PDP-11,7 assembler. And I'm guessing Intel didn't invent doing it backwards in their own either.

Wikipedia confirms it.

https://en.wikipedia.org/wiki/X86_assembly_language#Syntax

"The AT&T syntax is nearly universal to all other architectures with the same mov order; it was originally a syntax for PDP-11 assembly. The Intel syntax is specific to the x86 architecture, and is the one used in the x86 platform's documentation."

https://en.wikipedia.org/wiki/As_(Unix)

"As of November 1971, an assembler invoked as as was available for Unix. Implemented by Bell Labs staff, it was based upon the Digital Equipment Corporation's PAL-11R assembler."

Post reply on HN