Messages in this thread | | | From | <> | Subject | Re: [RFC] cleanup patches for strings | Date | Tue, 21 Jun 2005 10:38:12 -0400 |
| |
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" <vda@ilport.com.ua> To: <cutaway@bellsouth.net>; "Jesper Juhl" <juhl-lkml@dif.dk>; "linux-kernel" <linux-kernel@vger.kernel.org> Cc: "Andrew Morton" <akpm@osdl.org>; "Jeff Garzik" <jgarzik@pobox.com>; "Domen Puncer" <domen@coderock.org> 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |