This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
std::copy() optimization, gcc vs clang
- From: niXman <i dot nixman at autistici dot org>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 19 Nov 2013 17:05:41 +0400
- Subject: std::copy() optimization, gcc vs clang
- Authentication-results: sourceware.org; auth=none
Hi,
I'm curious the thoughts of GCC developers about this topic:
http://stackoverflow.com/questions/13128430/why-is-stdcopy-5x-slower-than-memcpy-in-my-test-program
Clang in this case optimizing better than GCC.
Is there any reason why GCC does not perform the same optimization?
Thanks.
--
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingw-w64/
___________________________________________________
Another online IDE: http://liveworkspace.org/