U++ framework
Do not panic. Ask here before giving up.

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: 332
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: Wed Apr 29 00:13:24 GMT+2 2026

Total time taken to generate the page: 0.00492 seconds