Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » [FEATURE] PCH support
[FEATURE] PCH support [message #33373] |
Fri, 29 July 2011 11:43 |
Shire
Messages: 41 Registered: September 2006 Location: Russia, Yamal peninsula
|
Member |
|
|
Currently, TheIDE have no support for PCH compiling. PCH technology significally reduces partial rebuild time. I wrote small patch for MSC and GCC compilers.
Patch changes:
- remove build time bm* macros such bmYEAR and bmSECOND
- add flag PCH and corresponding checkbox in Output mode configuration dialog
- remove old automatic PCH switch in MSC builder
- change .pdb generation behavior. Now builder generates one .pdb for MSC >= 8 and multiple .pdbs (per thread) for MSC < 8. When compiling by MSC < 8 with PCH, compilation performs in one thread and generates one .pdb file.
- PCH compilation runs in parallel with source files. When PCH becomes ready then compilation performs using PCH
- BLITZ can also use PCH
- tested with MSC (7.1, 8.0, 9SP1, 10SP1), MinGW 3.4.5, TDIMinGW 4.5.1, GCC 4.4.5, GCC 4.7.1
How to enable PCH? Enter Package organizer, select header file, add compiler flag "PCH". Now open "Output mode" dialog, and set checkbox "PCH" for this package.
UPD:
Currently PCH can be used only for C++ files.
When PCH is enabled, it will be force included in every suitable C++ file.
If you want to disable PCH inclusion, set attribute "Optimize for speed" or compiler option (like "-DNOPCH") to C++ file.
UPD2:
Updated due to changes in ide/Builders package.
Unusable manifest embedding and output binary date correction (see here) removed.
UPD3:
Updated due to changes in ide/Builders package.
[Updated on: Thu, 26 December 2013 07:45] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu May 16 18:27:13 CEST 2024
Total time taken to generate the page: 0.03335 seconds
|