GCC 4.1.2 generates different pentium instructions
H. J. Lu
hjl@lucon.org
Wed Mar 21 20:30:00 GMT 2007
On Wed, Mar 21, 2007 at 09:19:44PM +0100, fafa wrote:
> Hi all,
>
> I noticed that G++ 4.1.2 (on a Pentium 4) generates different instructions
> for
> lea 0x0(%esi),%esi
> or
> lea 0x0(%edi),%edi
> with the same meaning but different encoding depending on the switch
> "-momit-leaf-frame-pointer".
>
They are generated by assembler for different alignment adjustments.
H.J.
More information about the Gcc
mailing list