Section:[Base + Index*Scale + Offs]
is written in AT&T syntax as:
Section:Offs(Base,Index,Scale)
Where Base and Index are optional 32-bit base and index registers, and Scale is used to multiply Index. It can take the values 1,2,4 and 8. The Section is used to specify an optional section register for the memory operand.
More information about the AT&T syntax can be found in the as manual, although the following differences with normal AT&T assembly must be taken into account:
Eventually they will be supported.
const myid = 10; ... movl $myid,%eax -- allowed movl myid(%esi),%eax -- not allowed. |
The AT&T inline assembler supports the following macros: