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 » Community » Newbie corner » Is there any trick to reduce the executable even further?
Re: Is there any trick to reduce the executable even further? [message #39080 is a reply to message #39074] Wed, 13 February 2013 17:25 Go to previous messageGo to previous message
chickenk is currently offline  chickenk
Messages: 171
Registered: May 2007
Location: Grenoble, France
Experienced Member
Using gcc, I would use the following:
CFLAGS = -Os -ffunction-sections -fdata-sections
CXXFLAGS = -Os -ffunction-sections -fdata-sections
LDFLAGS = -Os -Wl,--gc-sections

If you are creating ELF executables, you can also try superstrip: http://www.skarnet.org/software/misc/superstrip.c

My 2 cents...
Lionel
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compiling a U++ project with a Python API on Windows
Next Topic: Per file compile flags
Goto Forum:
  


Current Time: Sat Jul 05 17:10:57 CEST 2025

Total time taken to generate the page: 0.03865 seconds