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 » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Why is Release mode Non-Blitz?
Why is Release mode Non-Blitz? [message #2665] Thu, 20 April 2006 15:14 Go to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
I noticed that Release mode compilation is Non-Blitz by default. Why is this? After some thinking it seems that with Blitz even the compiler optimizations could be better because the compiler sees more functions together, and can make better inlining decisions.
Re: Why is Release mode Non-Blitz? [message #2668 is a reply to message #2665] Thu, 20 April 2006 16:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
hojtsy wrote on Thu, 20 April 2006 09:14

I noticed that Release mode compilation is Non-Blitz by default. Why is this? After some thinking it seems that with Blitz even the compiler optimizations could be better because the compiler sees more functions together, and can make better inlining decisions.



Hard reason: MSC8 crashes in BLITZ / release (perhaps because of too long files fed into the optimizer)

Another reason: BLITZ tends to force much more .obj to be linked into target - even with MSC which performs function level linking, or with MINGW / ULD which does roughly the same, BLITZed release targets are significantly longer.

Mirek
Re: Why is Release mode Non-Blitz? [message #3982 is a reply to message #2668] Thu, 13 July 2006 16:50 Go to previous messageGo to next message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
but isn't the higher effort with "optimizing" useful for getting
a better optimized code from blitz than otherwise? when the
compiler would see the larger picture of the whole program,
wouldn't it then be able to produce faster code by better inlining?
Re: Why is Release mode Non-Blitz? [message #3988 is a reply to message #3982] Thu, 13 July 2006 18:11 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
piotr5 wrote on Thu, 13 July 2006 10:50

but isn't the higher effort with "optimizing" useful for getting
a better optimized code from blitz than otherwise? when the
compiler would see the larger picture of the whole program,
wouldn't it then be able to produce faster code by better inlining?



Yes, in theory you are right. In practice, for current compilers, the only difference is longer binary....

Anyway, no BLITZ for release is just default setting. You can use BLITZ in release if you want. Just turn it on Smile

Mirek
Previous Topic: BRC reference example problem
Next Topic: MSC8 compile error "Button Example"
Goto Forum:
  


Current Time: Fri Apr 26 06:22:04 CEST 2024

Total time taken to generate the page: 0.03171 seconds