This is the mail archive of the
mailing list for the GCC project.
Re: Docs on At&T X86 asm syntax
- From: Kelley Cook <kcook34 at ford dot com>
- To: Sebastien DI MERCURIO <sdi31fr at yahoo dot fr>, gcc at gcc dot gnu dot org
- Date: Fri, 18 Jul 2003 13:36:15 -0400
- Subject: Re: Docs on At&T X86 asm syntax
- Hop-count: 1
- References: <email@example.com>
Gcc use AT&T syntax for inline and sourcecode in
assembler. But it is rather different from those used
by Intel in their doc.
Some opcode doesn't have the same syntax, or same
name, argument passing is different, etc..
> Where could I find a comprehensive doc on this syntax?
If you don't feel like learning AT&T syntax, then two other options
would to compile with the flag "-masm=intel" or you can wrap all your
inline assembly in ".intel_syntax" & ".att_syntax" pseudo-ops like this:
"mov edx, dword *ptr* [ebp+08]\n"