The compiler options you choose can greatly improve the performance of the code generated by the compiler; however, like most performance considerations, there are trade-offs associated with these choices. Fortunately, you can weigh the trade-offs associated with compiler options without editing your source code because these options can be specified on the command line or in the configuration file.
If you want to avoid details, the least complex way to improve the performance of generated code is to specify the following (nondefault) compiler options:
The following sections describe, in more detail, performance improvements and trade-offs associated with specific compiler options.