4 ms·
I checked 3 compilers: icc 14, gcc 4.8, and clang 3.3. Clang is the only one which optimized the memset away.
by Marat_Dukhan 13y ago
I checked 3 compilers: icc 14, gcc 4.8, and clang 3.3. Clang is the only one which optimized the memset away.
- timtadh 13y agoNot a windows user so I can't check but given that it is the kernel driver the compiler we would be concerned about is the MS visual c++ compiler.
- Marat_Dukhan 13y agoVisual C++ 2013 doesn't remove memset either.
- lawnchair_larry 13y agoDid you enable optimization? I know first hand that GCC will optimize something similar out in many cases. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537
- Marat_Dukhan 13y agoYes, I compiled with -O3.