Compile your source code with a compiler from a different vendor.
Resolve problems using a new revision of same compiler or problems understanding what the current compiler is complaining about.
What interpretations of the language standard are made by the compiler you’re using that aren’t made by all compilers?
What potential problems in your code aren’t being found by the compiler you’re using?
What implementation details of your current compiler are you relying on?
On a new or unique platform, there may be only one compiler available.
Try compiling and running the application on a computer system with a different operating system or hardware architecture.
Use this tactic when one of the following conditions is true:
Your program uses features that are new or poorly defined in the language standard or the reference manual supplied by the vendor.
You’re using an optimizing compiler.
C++: GNU g++ is a good alternative to commercial compilers for this purpose.
Java: Make sure the compiler is really different. Many vendors provide Sun’s compiler as their own. The experimental Jikes compiler from IBM is a good alternative.
C: GNU gcc is a good alternative to commercial compilers for this purpose.
Fortran: There aren’t a lot of alternative compilers on a given platform.