x86 assembly output
Robert Lipe
robertl@sco.com
Fri Oct 29 08:00:00 GMT 1999
> According to Intel Architecture Software Developer's Manual page 3-286,
> the source register should be on the right, and the destination register
> should be on the left. However, when the code is compiled, the correct
> form (the latter one) is used. Borland C++ and MS Visual C++ both follow
> the Intel convention.
>
> Is this a bug or does g++ have its own convention?
GCC, by default, emits 'AT&T assembler syntax' for IA32 targets.
A brief description of the two syntaxes is given at:
http://www.zenez.com/cgi-bin/scoprogfaq/faq.pl?file=89
More information about the Gcc-bugs
mailing list