- Joined
- Jun 30, 2003
- Location
- Columbus, Ohio
So I've been doing a bit of programming lately, with GCC in linux.
Having made a few number crunching programs I've noticed that if you compile without any optimization flags, GCC will give you nothing but x87 FPU code. The execution time of my routine was ~8 seconds.
Using the -O2 or -O3 flag for optimization produced SSE code that did the same thing in about ~0.7 seconds. Not bad at all.
Anyway, I've been doing a bit of codding in Visual Studio Express now, and I don't see any options for optimizations. I don't even know if VS9.0 Express (or otherwise) supports SSE (or greater) or automatic vectorization.
I am able to write inline ASM code for manual SSE vectorization, and the speed boost is great, but it doesn't seem to offer the automatic optimizations that GCC offers.
Maybe Intel's compiler is really the best compiler for Windows? I've never used it. I thought Microsoft's would have been just as good.
Having made a few number crunching programs I've noticed that if you compile without any optimization flags, GCC will give you nothing but x87 FPU code. The execution time of my routine was ~8 seconds.
Using the -O2 or -O3 flag for optimization produced SSE code that did the same thing in about ~0.7 seconds. Not bad at all.
Anyway, I've been doing a bit of codding in Visual Studio Express now, and I don't see any options for optimizations. I don't even know if VS9.0 Express (or otherwise) supports SSE (or greater) or automatic vectorization.
I am able to write inline ASM code for manual SSE vectorization, and the speed boost is great, but it doesn't seem to offer the automatic optimizations that GCC offers.
Maybe Intel's compiler is really the best compiler for Windows? I've never used it. I thought Microsoft's would have been just as good.
Last edited: