First post, by truth_deleted
Using EF2000 and DirectX games as a benchmark, DOSBox ran at similar speeds whether compiled with MS Visual C++ or MinGW gcc. Both were configured to optimize for speed, although additional switches in addition to O2 yielded little effect.
However, Intel C++ is widely recognized as producing very optimized code which yields shorter execution times. This conclusion is typically based on artificial examples, although there are reports which show an increase of speed in real world examples. I haven't yet been able to integrate Intel's compiler with Visual Studio because I use the Express editions. Even with a trial version, there is no guarantee the code will compile as-is.
I have a question whether the crucial parts of DOSBox code are expected to benefit from an advanced compiler, or whether the "CPU" code is already optimized in assembly, at least in the x86 dynarec.