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
Memory is memory.  Pushed from the stack or as a 4 byte immediate value you
still have to get those 4 bytes somewhere although with the pointer you DO
actually stand a chance GCC might enregister the pointer variable.

Sure you don't think instruction bytes fetching is free ;->

BTW, I don't give a shit about the size advantage. Put the 3 byte EBP ref
and the 5 byte push imm32 in a loop and measure them - I know what the
answer will be.


----- 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>
>
> But that 3 byte push is fetching data from stack, while 5 byte const push
> does not. I ike smaller code, but not _this_ much.
>
> Also this smallish size advantage may be i386-specific only.
> --
> vda
>

-
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 14:27    [W:0.054 / U:2.968 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site