memcpy vs slice copy

bearophile bearophileHUGS at lycos.com
Sun Mar 15 08:08:47 PDT 2009


Sergey Gromov:
> Obviously, a memcpy intrinsic is at work here.<

Yes, gcc is able to recognize some calls to C library functions and replace them with intrinsics.
I think LDC too uses an intrinsic to copy memory of a slice.
This isn't a too much interesting benchmark, there's nothing much interesting/new to see here.

Bye,
bearophile



More information about the Digitalmars-d mailing list