I'm using intel syntax with GNU AS as I'm used to X86 assembler from back in the day and I make less mistakes than I would with the AT&T syntax. Back in the 16 bit days, an instruction like:
mov ax, [bx]
would move the byte pointer at bx into ax. Some assemblers had overrides on this asssumption, normally with a directive. Now that I'm using 32 bit assembly, almost every line is:
mov eax, dword ptr [bx]
Is there any way to make that the default or do I live with "dword ptr" all over the place? I do realise that I could go AT&T and have movl and movq etc...
This reply doesn't suit a comment style so I'll answer my own question. Thanks to Jester and "500 - Internal...". They are right. Using "as -a=111" and "as -a=222" and comparing:
***** 111
11
12 0003 8B4D08 mov ecx, dword ptr [ebp + 8]
13
***** 222
11
12 0003 8B4D08 mov ecx, [ebp + 8]
13
*****
That's beyond a doubt!