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 » GCC compilation options
Re: GCC compilation options [message #24167 is a reply to message #24156] Wed, 30 December 2009 18:53 Go to previous messageGo to previous message
mirek is currently offline  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... Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compilation Under win 32 with MSC9 error
Next Topic: Helper for internazionalize arrays of literals
Goto Forum:
  


Current Time: Tue Jul 08 23:01:29 CEST 2025

Total time taken to generate the page: 0.02542 seconds