Microsoft KB Archive/49478
Explanation of Why QuickC Compiles a File Twice PSS ID Number: Q49478 Article last modified on 03-18-1991 PSS database name: S_QuickC
2.00 2.01 2.50 2.51
QuickC versions 2.00, 2.01, 2.50, and 2.51 sometimes compile header files and source modules in your program list twice. Both of the following conditions must be present for this problem to occur:
- Build flags must be set on RELEASE.
- Optimizations must be set to FULL.
If both the above conditions are met, QuickC does the following:
- Compiles all the header files included in the source module in question
- Compiles the actual source module
- Repeats the above process
QuickC does this for each source module in your program list.
This is expected behavior for QuickC. When build flags are set to release and optimizations are set to full, this generally means that your program is debugged and is about ready to be released. To properly and completely optimize your code, the QuickC compiler must make a second pass through the code.
Copyright Microsoft Corporation 1991.