Gentle Introduction to x86-64 Assembly
x86-64.org
Gentle Introduction to x86-64 Assembly
1–5 of 5 posts
Re: Gentle Introduction to x86-64 Assembly
#2Re: Gentle Introduction to x86-64 Assembly
#3Wish the examples were using intel syntax.
Originally wrote: Why? The OSS world uses AT&T syntax, because that's what gas uses.
Re: Gentle Introduction to x86-64 Assembly
#4Wish the examples were using intel syntax.
I had a reply to this (see below), but reflection revealed that this is just a flame-baiting comment. Intel/AT&T is apparently a long-running flamewar. See e.g. http://www.google.com/url?sa=t&source=web&ct=res&... . Originally wrote: Why? The OSS world uses AT&T syntax, because that's what gas uses.
Inline asm looks hideous with AT&T syntax; they had 20 years to copy Turbo C and they haven't yet.
P.S. I hope to god you're not calling your gas sources .S, as gcc will gobble it up or overwrite it if you have .c file with the same file name and you accidently -S.
Re: Gentle Introduction to x86-64 Assembly
#5Wish the examples were using intel syntax.
I had a reply to this (see below), but reflection revealed that this is just a flame-baiting comment. Intel/AT&T is apparently a long-running flamewar. See e.g. http://www.google.com/url?sa=t&source=web&ct=res&... . Originally wrote: Why? The OSS world uses AT&T syntax, because that's what gas uses.
gas uses AT&T syntax because it needs a format that applies to multiple architectures. But the Intel format dominates Intel-specific compilers and, I expect, the mindshare of Intel assembly coders. The OSS world is no exception; the open-source Intel nasm and fasm assemblers use Intel format. Intel syntax is so popular, in fact, that gas itself was modified to support it: http://sourceware.org/binutils/docs-2.19/as/i386_002dSyntax....