3 ms·
No. While the compiler can optimize memcpy calls to direct loads/stores for small arguments (when inlining the loads/stores would be smaller than the cost of ca
by dezgeg 4y ago
No. While the compiler can optimize memcpy calls to direct loads/stores for small arguments (when inlining the loads/stores would be smaller than the cost of calling memcpy), for bigger or not statically know sizes it WILL call to memcpy in libc. And in fact it may even emit memcpy calls for things like struct copies.
- mgaunard 4y agowhether you want the built-in to have the ability to refer to an external definition is a compiler flag.