This little detail is not on the "compiling for puppy" but it's a fairly important one:
a lot of Makefiles will leave the "add debug symbol" option of gcc enabled (it's "-g"). This means that a alot of "text" information is added to your program to facilitate debugging, increasing the program file significanlty.
When you compile for puppy before typing make (but after the ./configure step if it's part of the compiling steps) you should open Makefile and look for a line that sets the C flags (usually CFLAGS = ....).
if the line include -g remove it and see how much space is gained. This will NOT change the behavior of the program.
There are other optimizations that can be enabled, such as changing the optimizer setting. I find of a lot of program use -O2 by default, changing it to -Os will usually make a smaller program. In theory changing optimizer settings should not change the behavior of your program, however it is possible that it can have subtle side effects that the original programmer didn't test for.
I'm really happy to see the source-sorcerer project, because now we can go in and check how each package was built, and make sure that each build is optimized.
Compiling for puppy: leave out the 'debug' symbols
Stuff that has yet to be sorted into a category.
Message
Author
- papaschtroumpf
- Posts: 250
- Joined: Fri 17 Jun 2005, 04:23
Compiling for puppy: leave out the 'debug' symbols
#1 Post by papaschtroumpf »
Mandriva LE 2005 user and puppy newbie
Jump to
- House Training
- ↳ Beginners Help ( Start Here)
- ↳ Users ( For the regulars )
- ↳ Für deutschsprachige Anhänger
- ↳ Pour les francophones
- ↳ Usuarios de habla Hispana
- ↳ HOWTO ( Solutions )
- ↳ Bugs ( Submit bugs )
- Advanced Topics
- ↳ Additional Software (PETs, n' stuff)
- ↳ Package Collections / Repositories
- ↳ REQUESTS
- ↳ Browsers and Internet
- ↳ Business
- ↳ Compiling
- ↳ Desktop
- ↳ Documents
- ↳ Drivers
- ↳ Educational
- ↳ Engineering/Science/Simulation
- ↳ Eye Candy
- ↳ Filesystem
- ↳ Games
- ↳ Graphics
- ↳ Multimedia
- ↳ Network
- ↳ Security/Privacy
- ↳ System
- ↳ Utilities
- ↳ Virtualization
- ↳ Unsorted
- ↳ Cutting edge
- ↳ Multi-session live-CD/DVD
- ↳ Hardware
- ↳ Audio
- ↳ Networking
- ↳ Dialup
- ↳ Ethernet
- ↳ Wireless
- ↳ Printers
- ↳ Video
- ↳ Puppy Derivatives
- ↳ Puppy Projects
- ↳ Next Puppy Development
- ↳ 4.x
- ↳ Bugs (4.x dev)
- ↳ Usability Issues (4.x dev)
- ↳ 5.x
- ↳ Bugs (5.x dev)
- ↳ Usability Issues (5.x dev)
- ↳ Localization Project
- ↳ Documentation Project
- Taking the Puppy out for a walk
- ↳ Announcements
- ↳ Puppy Power
- ↳ Suggestions
- ↳ Misc
- Off-Topic Area
- ↳ Programming
- ↳ Security
- ↳ Truly off-topic conversations
- ↳ Spam reports