1

I see some resources for gcc, but not for Visual Studio.

Anyone have a treasure trove of references, examples and tricks?

Garen
  • 941
  • 2
  • 9
  • 20
moogs
  • 8,122
  • 8
  • 44
  • 60

2 Answers2

4

I don't think VC++ does loop vectorization. If you want it, you'll probably have to use Intel's compiler. Note that it will plugin to Visual Studio as a drop-in replacement.

Also see this question:

What compilers besides gcc can vectorize code?

UPDATE: The 2012 version reportedly does auto-vectorization now, see:

Inside Auto-Vectorization, 1 of n

Community
  • 1
  • 1
Garen
  • 941
  • 2
  • 9
  • 20
0

Vectorization is not supported by VC++. But, the SSE support is enabled via intrinsics. Please look this MSDN post.