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" <[email protected]>
To: <[email protected]>; "Jesper Juhl" <[email protected]>;
"linux-kernel" <[email protected]>
>
> 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]