[Skiboot] [PATCH v2] libc/string: speed up common string functions

Stewart Smith stewart at linux.ibm.com
Tue May 21 13:16:04 AEST 2019


Nicholas Piggin <npiggin at gmail.com> writes:
> Use compiler builtins for the string functions, and compile the
> libc/string/ directory with -O2.
>
> This reduces instructions booting skiboot in mambo by 2.9 million in
> slow-sim mode, or 3.8 in normal mode, for less than 1kB image size
> increase.
>
> This can result in the compiler warning more cases of string function
> problems.

Looks like it even found a bug with DEBUG=1 builds around the xive code,
so that's good!

Merged to master as of a00971e1946bf184c2f38e16123bdb3537602a9c

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list