to reduce footprint

This is a discussion on to reduce footprint within the Tech Board forums, part of the Community Boards category; Hello everyone, I am wondering how to reduce the footprint of a binary build (C/C++) program generated by gcc. 1. ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    to reduce footprint

    Hello everyone,


    I am wondering how to reduce the footprint of a binary build (C/C++) program generated by gcc.

    1. Any ideas of reduce the footprint of a debug version build?
    2. Any ideas of reduce the footprint of a release version build?

    I think some linker or compiler options may help, what are they? Any other ideas to reduce footprint?


    thanks in advance,
    George

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    First try stripping the executable. This can be done during compiling by passing -s or after compiling is done by using the command strip (followed with a parameter like --strip-unneeded).

    The second method or step is to use an executable packer. http://www.upx.org/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory footprint of Dictionary
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-17-2008, 08:39 AM
  2. Performance and footprint of virtual function
    By George2 in forum C++ Programming
    Replies: 8
    Last Post: 01-31-2008, 06:34 PM
  3. Replies: 7
    Last Post: 11-01-2005, 01:42 PM
  4. can't get this function to reduce fractions
    By bruce in forum C++ Programming
    Replies: 4
    Last Post: 11-13-2002, 12:07 AM
  5. reduce flickering..and more
    By lambs4 in forum Game Programming
    Replies: 7
    Last Post: 01-12-2002, 01:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21