Re: [RFC] cleanup patches for strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Congratulations, you proved that a register push is faster than a 3 byte
memory push.  I believe this is exactly what I said would happen if the
autovar pointer wound up being enregistered.

However, it is NOT what GCC will generate for pushing params to static
strings.

For that you're going to get a 5 byte PUSH imm32.


----- Original Message ----- 
From: "Denis Vlasenko" <[email protected]>
To: <[email protected]>; "Jesper Juhl" <[email protected]>;
"linux-kernel" <[email protected]>
Cc: "Andrew Morton" <[email protected]>; "Jeff Garzik" <[email protected]>;
"Domen Puncer" <[email protected]>
Sent: Tuesday, June 21, 2005 09:06
Subject: Re: [RFC] cleanup patches for strings

Took 9574 CPU cycles Took 8068 CPU cycles


>   40:   ff 75 f8                pushl  0xfffffff8(%ebp)
>   43:   58                      pop    %eax


>   80:   53                      push   %ebx
>   81:   58                      pop    %eax

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux