I am trying to optimize my code to make run as fast as possible at run-time. I compared VS with Intel by switching several optimization options but I have not noticed a remarkable difference. However, since my processor is Intel it should be faster. What optimization switches do you suggest to maximize speed?
Share
The compilers have a slightly different focus.
Microsoft traditionally targets code bases like the Windows OS and SQL Server (surprise). That code contains lots of integer type code and not a lot of heavy loops. Their compiler produces good code for that kind of apps.
Intel focuses more of computation intensive apps with more floating point computations and code that might benefit from aggressive loop unrolling.
Like you, I have noticed that my code that is well tuned for the MS compiler doesn’t benefit from being recompiled with the Intel compiler.