__builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ?

Luigi Rizzo rizzo at iet.unipi.it
Wed Jan 23 21:31:42 UTC 2013


On Wed, Jan 23, 2013 at 11:26 AM, Dimitry Andric <dim at freebsd.org> wrote:

> Which compilation flags did you use to test this?  When I compiled your
> testcase program with clang 3.2, gcc 4.2 and gcc 4.7 at -O2, with all
> other settings at their defaults, all three compilers just called libc's
> memcpy() for the __builtin_memcpy tests.
>

just -O2 -Wall -Werror, no special -m* or -f* flags

cheers
luigi


More information about the freebsd-current mailing list