TimP wrote:
Perhaps gcc is performing optimizations that VC++ is not. Try compiling them both with no optimizations and test the run times. If they're equivalent, then gcc is optimizing more aggressively, otherwise the culprit is elsewhere.

Optimizations are good... but I'd never expect a 50% gain in performance with them.