memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel
Denis Vlasenko
vda@ilport.com.ua
Sat Apr 2 12:27:00 GMT 2005
On Saturday 02 April 2005 15:18, Denis Vlasenko wrote:
> -O2 compile does inline copying, however, suboptimally.
> Pushing/popping esi/edi on the stack is not needed.
> Also "mov $1,ecx; rep; movsl" is rather silly.
I think I am wrong about push/pop. Sorry.
However, other observation is still valid. You
may wish to compile this updated t.c and see.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.c
Type: text/x-csrc
Size: 2513 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050402/afb9cffa/attachment.bin>
More information about the Gcc
mailing list