Although I am pleasantly surprised, I am also quite baffled by this. Isnt the compiled code pretty much the same for gcc and VS?
Obviously not.
ron8888:
Code::Blocks will be always faster than VS, but that's for one thing: Code::Blocks is not a compiler, neither VS is.
C::B isn't tied to only one compiler, where the other is.
And for runtime speed, the currently most fastest compilers are GCC, MSVC, and Intel compilers. In some situations one wins, where in other situations another wins.
And since from Code::Blocks you can use all the three at the same time, you can check easily which one is faster in your case.
For numerical crunching with lot's of vectorization, tipically the Intel compiler is faster.
So if you're going to spend many hours with number crunching, it will certainly pay if you do tests and benchmarks with the three compilers and every possible runtime optimization flag.