[coreboot] rfc - gcc builtins and memset memcpy memmove memcmp
peter at stuge.se
Sat Sep 11 21:59:57 CEST 2010
Marc Jones wrote:
> doesn't really explain why gcc doesn't do a rep stos or rep mov
> (which should hit the cache)/ That should be an easy optimization
> for gcc.
Except I don't think it's an optimization performance-wise. But if
you enable -Os then I would expect it to use rep stosb.
> It also doesn't address why coreboot has a functions when we could
> use gcc intrinsic that should be optimized for the architecture
> they are built for.
Good point! I guess we rolled our own to be less dependent on gcc. I
think it would be OK to use gcc's implementations though.
More information about the coreboot