Originally Posted by
iMalc
I assume you realise that different compilers excel in different areas. Code snippet A might run faster on compiler 1, but code snippet B runs faster on compiler 2.
I've even heard that it can be as simple as changing your loop type from a 'while' to a 'for' as a certain compiler out there optimises for loops more heavily. Stupid, I know.
If you spend enough time profiling and optimising your code for one compiler then you may have only tailored it to run fast when compiled using just that compiler. Swap compilers and repeat the process of profiling and optimising and then it may run slower when compiled with the first compiler.