|
|
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Using BLITZ in release mode
Using BLITZ in release mode [message #29348] |
Fri, 15 October 2010 19:16 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
Previously BLITZ wasn't used in Release mode because that was leading to big executables caused by inefficient linking. Since somebody suggested using of -ffunction-sections -fdata-sections -Wl,--gc-sections options that shouldn't be a problem any more (IMHO).
Unfortunately, an attempt to enable BLITZ for Release mode in the Build Mode configuration doesn't seem to affect build process. TheIDE still continue to compile packages file by file.
Is there a way to enable BLITZ in Release mode?
TIA
Regards,
Novo
|
|
|
Re: Using BLITZ in release mode [message #29352 is a reply to message #29348] |
Fri, 15 October 2010 21:40 |
|
Novo wrote on Fri, 15 October 2010 19:16 | Previously BLITZ wasn't used in Release mode because that was leading to big executables caused by inefficient linking. Since somebody suggested using of -ffunction-sections -fdata-sections -Wl,--gc-sections options that shouldn't be a problem any more (IMHO).
Unfortunately, an attempt to enable BLITZ for Release mode in the Build Mode configuration doesn't seem to affect build process. TheIDE still continue to compile packages file by file.
Is there a way to enable BLITZ in Release mode?
TIA
|
Hi Novo,
For me it works correctly. I think the problem might be somewhere else... Are you sure that the modification times of the files are older than one hour?
Best regards,
Honza
|
|
|
|
Re: Using BLITZ in release mode [message #29355 is a reply to message #29354] |
Fri, 15 October 2010 22:52 |
|
Actually all you need to do set blitz mode in Output mode:) I thought you know that... The separate directory in uppout should be even in case of debug mode (as you can turn it of in debug if you like). I'm not sure if there is some other reason than that blitz mode sets BLITZ flag and any additional flag will cause a new directory to be created.
BTW: I am very happy about the overheads you report - I thought it is much more
Honza
|
|
|
Re: Using BLITZ in release mode [message #29362 is a reply to message #29355] |
Sat, 16 October 2010 03:57 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
dolik.rce wrote on Fri, 15 October 2010 16:52 | Actually all you need to do set blitz mode in Output mode:) I thought you know that...
|
I thought "Build Mode" value is a default value and "Output Mode" is an override value ... I'm still confused.
Regards,
Novo
|
|
|
Re: Using BLITZ in release mode [message #29371 is a reply to message #29362] |
Sat, 16 October 2010 11:02 |
|
Novo wrote on Sat, 16 October 2010 03:57 |
dolik.rce wrote on Fri, 15 October 2010 16:52 | Actually all you need to do set blitz mode in Output mode:) I thought you know that...
|
I thought "Build Mode" value is a default value and "Output Mode" is an override value ... I'm still confused.
|
I am not entirely sure what you mean (and I don't have theide at hand today ) but the buildmode dropdown and output mode dialog set the same thing. "Output mode" just let's you set more additional details, like using Blitz, shared/static linking etc.
Honza
|
|
|
|
Re: Using BLITZ in release mode [message #29410 is a reply to message #29379] |
Tue, 19 October 2010 10:51 |
|
Hi Novo,
Sorry it took me so long to answer. I had to read theide sources to figure out which of those two ways to set BLITZ mode does what.
I believe that you were right about "Build method" -> "Use Blitz" being default which is overwritten by the "Output mode" setting. If I understand right, the catch is that the default value from build method is actually only used once, when first creating the output mode dialog. Since the dialog contents are saved and loaded again next time and the blitz value in output mode has a bigger priority it probably results in always using the value from "Output mode".
I hope I understood it right. It looks to me like a little design flaw, maybe it should be fixed. This setting should be probably only in the output mode dialog, as it allows finer settings (per package) and removed from "Build methods". This thing is quite complicated (both for user and in the sources) and might cause confusion.
Anyway, for short: Setting the blitz usage in "Output mode" dialog should be always working, regardless of the state of the "Build methods" default.
Honza
|
|
|
|
|
Goto Forum:
Current Time: Wed Apr 24 13:10:52 CEST 2024
Total time taken to generate the page: 0.02496 seconds
|
|
|