Microsoft KB Archive/49478

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

MS-DOS

Summary:

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:

  1. Build flags must be set on RELEASE.
  2. Optimizations must be set to FULL.

If both the above conditions are met, QuickC does the following:

  1. Compiles all the header files included in the source module in question
  2. Compiles the actual source module
  3. 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.