Home » Developing U++ » U++ Developers corner » GCC compilation options
Re: GCC compilation options [message #24167 is a reply to message #24156] |
Wed, 30 December 2009 18:53   |
 |
mirek
Messages: 14265 Registered: November 2005
|
Ultimate Member |
|
|
Zbych wrote on Tue, 29 December 2009 15:50 |
luzr wrote on Tue, 29 December 2009 17:36 | At least in Linux and BSD, it did not seem to result in any difference in binary size.
|
You will not see huge size reduction of big applications, because such applications use a lot of functions from u++, so there is almost nothing to remove.
The biggest difference is in small applications.
I've made simple MT tcp/ip server. Without --gc-sections size of application was ~1,5MB. After I added --gc-sections size decreased to 0,4MB. For me it is a huge difference.
Compilation results for some applications from u++ package:
Application | size [B] without dead code removal | size [B] with dead code removal | Size reduction
------------------------------------------------------------------------------------------------|----------------------
ide | 5809896 | 5148244 | 11,4%
Gui01 | 1760072 | 1090132 | 38%
HomeBudget | 3641508 | 2037696 | 44%
gcc version 4.4.1, all applications optimized for size.
|
Well, things definitely improved! This is good news.
Now I only have to decide whether to hardcode it or rather put another "Link options" field into Build methods and set it as default... 
|
|
|
 |
|
GCC compilation options
By: Zbych on Tue, 29 December 2009 11:46
|
 |
|
Re: GCC compilation options
By: mirek on Tue, 29 December 2009 17:36
|
 |
|
Re: GCC compilation options
By: Zbych on Tue, 29 December 2009 21:50
|
 |
|
Re: GCC compilation options
By: mirek on Wed, 30 December 2009 18:53
|
 |
|
Re: GCC compilation options
By: mirek on Wed, 30 December 2009 21:00
|
 |
|
Re: GCC compilation options
By: gxl117 on Fri, 01 January 2010 07:00
|
 |
|
Re: GCC compilation options
By: mirek on Fri, 01 January 2010 09:30
|
 |
|
Re: GCC compilation options
By: gxl117 on Fri, 01 January 2010 09:51
|
 |
|
Re: GCC compilation options
By: mirek on Fri, 01 January 2010 20:07
|
 |
|
Re: GCC compilation options
By: Zbych on Tue, 05 January 2010 11:26
|
 |
|
Re: GCC compilation options
By: Novo on Thu, 07 January 2010 03:01
|
Goto Forum:
Current Time: Tue Jul 08 23:01:29 CEST 2025
Total time taken to generate the page: 0.02542 seconds
|