[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: to reduce footprint
From: |
Lin George |
Subject: |
Re: to reduce footprint |
Date: |
Wed, 20 Dec 2006 08:49:49 -0800 (PST) |
Thanks Danny. I think -s will strip some symbols in the binaries after reading
related part of the manual. But I have not found an answer to my concern that
if I strip something from the binary, whether some functions will be lost in
the binaries? I have this concern is because I think function and footprint are
a balanced pair. If I strip (remove) anything, I may lose some functions. Could
you kindly clarify please?
regards,
George
----- Original Message ----
From: Danny Boelens <address@hidden>
To: Lin George <address@hidden>; address@hidden
Sent: Tuesday, December 19, 2006 5:13:30 PM
Subject: Re: to reduce footprint
----- Original Message -----
From: "Lin George" <address@hidden>
To: <address@hidden>
Sent: Tuesday, December 19, 2006 3:44 AM
Subject: 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?
I'm not an expert in the field, but I know there might be a few linker flags
that can help you. For instance, ld (on Linux) has the '-s' or '-S' option
(see the ld manual for more info). I also suggest you take a look at
'strip'; that command is probably what you're looking for. Once again, the
manual can tell you far more than I can ;-)
Hope this helps,
Danny
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com