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
GCC compilation options [message #24148] Tue, 29 December 2009 11:46 Go to previous message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
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.


 
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: Sun Apr 28 20:20:14 CEST 2024

Total time taken to generate the page: 0.05451 seconds