Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » Precompiled headers
Re: Precompiled headers [message #44236 is a reply to message #44235] Wed, 04 February 2015 08:33 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
chickenk wrote on Tue, 03 February 2015 20:47
mirek wrote on Sun, 18 January 2015 11:49
by combining all files into single object file, linker has less oportunity to remove unused code. This leads to (sometimes significantly) larger executable binaries. For this reason, we do not recommend (and have off by default) BLITZ for release builds and if possible, we use precompiled headers for release builds.

At least for GCC, your experiments would lead me to use BLITZ for release builds, with the following options:
-ffunction-sections -fdata-sections -Wl,--gc-sections

Best of BLITZ, with much more unused code removed!

Anyway thanks for working on PCH.


Well, at the time I was testing these options, it did not make noticeable impact on code size (in short, they did not appeared to work). BTW, note that these options are part of standard installation.

You can check: build release (e.g. theide) with BLITZ and these options, then build without BLITZ, report the size...
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: LineEdit/CodeEditor heavily optimized for huge files
Next Topic: AttrText improvements
Goto Forum:
  


Current Time: Sun Aug 24 14:12:42 CEST 2025

Total time taken to generate the page: 0.04747 seconds