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 #24156 is a reply to message #24153] Tue, 29 December 2009 21:50 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 326
Registered: July 2009
Senior Member
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.


 
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 May 14 06:12:15 CEST 2024

Total time taken to generate the page: 0.03951 seconds