Re: to reduce footprint



Hi,

not sure what you are building and how you are doing it with gcc. If you use
pretty much the default compiler options, than the "strip.exe" program might
remove some debug information in your program. This can reduce it's size
approx 6 times. There might be compiler and linker options that exclude the
debug info during make phase, but I don't know them. You might ask this
question in a linux newsgroup, as they are more familiar with the gcc tools.

regards,

Luc


"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3FCADCC0-FDD9-467C-8E88-E79244F76618@xxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: to reduce footprint
    ... Any ideas of reduce the footprint of a debug version build? ... Any ideas of reduce the footprint of a release version build? ... in a GCC based newsgroup. ... This one is focused on the Microsoft Platform ...
    (microsoft.public.windowsce.platbuilder)
  • Re: POSIX_C_SOURCE
    ... > is defined to have a value of zero, and GCC ... Many gcc options generate warnings with legal C source and this is ... The problem is one of incompatibility between the header files and the ... compiler options selected. ...
    (freebsd-stable)
  • Re: Should Delphi be able to export projects to FPC?
    ... could have configured Lazarus to run the strip command automatically after a Build or Compile. ... RELEASE and DEBUG builds. ... Depending on the parameter passed to the build script it will generate a Release or Debug build. ... FPC can read compiler options from external config files. ...
    (borland.public.delphi.non-technical)
  • Re: Why oh why does this NOT give a compile error?
    ... it's a feature of the C standard that this code has undefined ... therefore does not require a diagnostic message. ... What compiler options are you using? ... gcc can be a good compiler, though what it produces is a warning about ...
    (comp.lang.c)
  • Re: Why oh why does this NOT give a compile error?
    ... void f ... I would expect at least some warning, ... With the right compiler options, gcc can be a good compiler, though what it produces is a warning about the more fundamental problem, rather than the one you're actually asking about: ...
    (comp.lang.c)