Re: [RFC] cleanup patches for strings
From: cutaway
Date: Tue Jun 21 2005 - 08:52:31 EST
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@xxxxxxxxxxxxx>
To: <cutaway@xxxxxxxxxxxxx>; "Jesper Juhl" <juhl-lkml@xxxxxx>;
"linux-kernel" <linux-kernel@xxxxxxxxxxxxxxx>
Cc: "Andrew Morton" <akpm@xxxxxxxx>; "Jeff Garzik" <jgarzik@xxxxxxxxx>;
"Domen Puncer" <domen@xxxxxxxxxxxx>
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/