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 #24153 is a reply to message #24148] Tue, 29 December 2009 17:36 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Zbych wrote on Tue, 29 December 2009 05:46

Hi,

I've noticed that u++ doesn't force gcc to remove unused functions nor data, so binaries are usually bigger (comparing to MS compiler). So, my proposition is to add:
1. -ffunction-sections and -fdata-sections to compilation options for gcc
2. -Wl,--gc-sections to linker options

I know that "-ffunction-sections" is already used, but without --gc-sections it is useless.





We have experimented with it way back (5 years ago). At least in Linux and BSD, it did not seem to result in any difference in binary size.

Maybe things evolved since then. Could you try please? Ideal test candidate is theide in release mode.

You can pass linker options via package organizer for the purpose of the experiment...

Mirek

 
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 07:54:00 CEST 2024

Total time taken to generate the page: 0.01995 seconds