FIX: Linking Large Projects Can Be Very SlowLast reviewed: December 18, 1997Article ID: Q151501 |
The information in this article applies to:
SYMPTOMSLinking a large project can take significantly longer than expected.
CAUSEThe linker version 5.00.7022 that was shipped with Visual C++ 5.0 does two types of optimizations to decrease the image size and increase the program speed. Transitive COMDAT Elimination(TCE) and Identical COMDAT Folding(ICF). TCE removes unreferenced COMDATs, while ICF folds identical COMDATs into one copy. The linker option for TCE is /OPT:REF and the option for ICF is /OPT:ICF. /OPT:REF, which is the default for the release build, turns on /OPT:ICF by default. Some applications cause ICF to proceed very slowly.
RESOLUTIONTurn off Identical COMDAT folding(ICF) by specifying /OPT:NOICF in your linker options.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual Studio 97 Service Pack 1. For additional information about the Visual Studio 97 Service Pack 1, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q170365 TITLE : INFO: Visual Studio 97 Service Packs - What, Where, and Why REFERENCESFor additional information, please see the following article in the Visual C++ 5.0 online Help:
TITLE: /OPT (Optimizations) URL : mk:@ivt:vccore/F19/D1E/S3982.HTM Keywords : LINKIss vcbuglist500 VS97FixlistSP3 kbtool VS97FixlistSP2 VS97FixlistSP1 Version : 5.0 Platform : NT WINDOWS Issue type : kbbug Solution Type : kbfix kbservicepack |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |