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 » Developing U++ » U++ Developers corner » Using BLITZ in release mode CLANG
Using BLITZ in release mode CLANG [message #57097] Tue, 25 May 2021 10:08 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
So far, the default configuration is not using BLITZ in release mode. There are two reasons for this:

a) MSC could not handle it (results in internal compiler error, probably due to .obj files getting too big)
b) There was a hope that not using BLITZ in release mode can improve the size of resulting binary

That said, with CLANG the first concern is irrelevant, works just fine in Win32. So maybe we should have BLITZ active by default for at least CLANG.

I have put this theory to test with TheIDE (in Win32):

Non BLITZ (using precompiled headers): size: 19003904, built in 5:00
BLITZ: size: 19454976, built in 1:39

So based on this, definitely worth it. That small difference in size can be attributed to additional speed optimizations (perhaps something more got inlined in BLITZ mode).

What about your projects? Is going BLITZ in release by default a good idea?

Mirek
Re: Using BLITZ in release mode CLANG [message #57102 is a reply to message #57097] Tue, 25 May 2021 13:19 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello MIrek,

I am always full Blitz on Win/Clang.
Compilation time gain is precious !!!
Re: Using BLITZ in release mode CLANG [message #57105 is a reply to message #57097] Tue, 25 May 2021 19:04 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
mirek wrote on Tue, 25 May 2021 04:08

What about your projects? Is going BLITZ in release by default a good idea?

I personally use BLITZ in release with Clang for very long time.
Another advantage of BLITZ is that combining of more source code in one file allows a compiler to do better optimization.
For example, an one-file version of Sqlite is ~30% faster ...


Regards,
Novo
Previous Topic: problems compiling nightly on MSVS2019/2017 nested lambda's
Next Topic: WString vs Grapheme Cluster idea (with possible flaw)
Goto Forum:
  


Current Time: Fri Mar 29 06:15:42 CET 2024

Total time taken to generate the page: 0.01142 seconds