fafa <[EMAIL PROTECTED]> writes:
> >> > I noticed that G++ 4.1.2 (on a Pentium 4) generates different
> >> instructions
> >> > for
> >> > lea0x0(%esi),%esi
> >> > or
> >> > lea0x0(%edi),%edi
> >> > with the same meaning but different encoding depending on the switch
> >> > "-momit-leaf
On Mar 22, 2007, at 12:03 PM, fafa wrote:
I see. But why not simple "nop" instructions ?
They are the wrong size or too slow. Anyway, this is the wrong list
for such questions generally. This list is for developers of gcc.
Am 21.03.2007, 23:38 Uhr, schrieb Ian Lance Taylor <[EMAIL PROTECTED]>:
"H. J. Lu" <[EMAIL PROTECTED]> writes:
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
> lea0x0(%esi),%esi
> or
"H. J. Lu" <[EMAIL PROTECTED]> writes:
> 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
> > lea0x0(%esi),%esi
> > or
> > lea0x0(%edi),%edi
> > with the same meaning but diff
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
> lea0x0(%esi),%esi
> or
> lea0x0(%edi),%edi
> with the same meaning but different encoding depending on the switch
> "-momit-leaf-fram
Hi all,
I noticed that G++ 4.1.2 (on a Pentium 4) generates different instructions
for
lea0x0(%esi),%esi
or
lea0x0(%edi),%edi
with the same meaning but different encoding depending on the switch
"-momit-leaf-frame-pointer".
If I compile and "objdump" a short function with "-O2" I