lkml.org 
[lkml]   [2005]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC] cleanup patches for strings
Date
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/

\
 
 \ /
  Last update: 2005-06-21 15:54    [W:0.372 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site