Messages in this thread | | | From | <> | Subject | Re: [RFC] cleanup patches for strings | Date | Tue, 21 Jun 2005 09:08:34 -0400 |
| |
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/
| |