Re: to reduce footprint
- From: "Luc Cool" <luc__cool@xxxxxxxxxxx>
- Date: Thu, 21 Dec 2006 08:49:27 GMT
Hi George,
To be honest, I don't know the strip tool that well either. I thought it
only removed the debug information out of your final exe program. I am
currently studiing on a open source project, for win32, that uses the gcc
compiler and the typical "./configure" "make" "make install" method to
compile things. I found out that my exe file was approx 10MB in size, while
the original exe that came with the project was only 2MB. After I striped
the exe, it's size was below 2MB, and I found no lack of functionality
compared to the 10MB version. the "strip --help" should explain it's
functionality.
Functionality and footprint are a balanced pair, as you mention. In the case
of strip, the drawback in functionality is the fact that your exe can't be
debugged anymore.
If you further want to reduce your footprint, you might put all the
configuration stuff of your program in a separate application, as it should
not be used that often. That way, your main program will become smaller.
The drawback is that it will take a longer time to enter the configuration,
since the other program has to be loaded.
The ram memory of mobile devices keeps increasing every year. Unless you
wan't to build a device yourself, for a specific purpose, and you want to
make it as cheap as possible, I don't see the footprint as a serious
bottleneck. If you want your program to run on as many devices as possible,
even the older ones with less memory, it could be a issue to take into
account. At that moment you will also face the problem of different windows
mobile versions running on them....
regards,
Luc
"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:862DD4AF-0D20-4D9E-8770-97D3CD41416D@xxxxxxxxxxxxxxxx
Thanks Luc! I am developing an embedded application for both WindowsMobile
and Linux platform, and I want to find some general ways (standard ways)to
reduce footprint.concern
I have heard of using strip will reduce the footprint. But I have a
that whether strip the binary will reduce some functions of the binary? Ipair,
have the concern is because I think function and footprint are balanced
if I reduce the footprint -- I may lose some functions.version
Any comments or clarifications?
BTW: I think strip could only be used for debug version, and release
can not use it. Is my understanding correct?use
regards,
George
"Luc Cool" wrote:
Hi,
not sure what you are building and how you are doing it with gcc. If you
mightpretty much the default compiler options, than the "strip.exe" program
theremove some debug information in your program. This can reduce it's size
approx 6 times. There might be compiler and linker options that exclude
tools.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
other
regards,
Luc
"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3FCADCC0-FDD9-467C-8E88-E79244F76618@xxxxxxxxxxxxxxxx
Hello everyone,program
I am wondering how to reduce the footprint of a binary build (C/C++)
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
ideas to reduce footprint?
thanks in advance,
George
.
- Follow-Ups:
- Re: to reduce footprint
- From: George
- Re: to reduce footprint
- References:
- Re: to reduce footprint
- From: Luc Cool
- Re: to reduce footprint
- Prev by Date: Samsung S3C2440 BSP for CE6
- Next by Date: How to remove the print footer and header?
- Previous by thread: Re: to reduce footprint
- Next by thread: Re: to reduce footprint
- Index(es):
Relevant Pages
|