Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Excutable size

0 views
Skip to first unread message

Reddy

unread,
Sep 29, 2003, 1:42:04 AM9/29/03
to

hi
every body
when i build my project my excutable size is too large its around 4 mb.Is there any setting that affect the excutable size other than debug information.i am sure i can reduce it but i dont what are all the settings that affect.
Regards
Vijay

Remy Lebeau (TeamB)

unread,
Sep 29, 2003, 2:38:33 AM9/29/03
to

"Reddy" <vjay...@hotmail.com> wrote in message
news:3f77c62c$1...@newsgroups.borland.com...

> when i build my project my excutable size is too large its around 4 mb.

That is normal especially if you are using the VCL and stati linking. The
VCL's library is pretty large.

> Is there any setting that affect the excutable size other than debug
information.

Borland does not store the debug info in the executable itself. It is
stored in a separate TDS file. As such, enabling debug info does not have a
significant effect on the executable size.

> i am sure i can reduce it but i dont what are all the settings that
affect.

Settings are not the problem. If you are bothered by the file size, there
are a number of third-party executable shrinker programs available for
download.


Gambit

Chris Uzdavinis

unread,
Sep 29, 2003, 9:25:32 AM9/29/03
to
"Reddy" <vjay...@hotmail.com> writes:

If you have any global variables, they add to executable size. Large global
arrays can have a dramatic impact on executable size. (Yet another
reason to avoid globals.)

Not sure if this helps, but it's a thought.

--
Chris (TeamB);

Micha Nelissen

unread,
Sep 29, 2003, 10:27:40 AM9/29/03
to
Chris Uzdavinis (TeamB) wrote:

> "Reddy" <vjay...@hotmail.com> writes:
>
>
>>hi every body when i build my project my excutable size is too large
>>its around 4 mb.Is there any setting that affect the excutable size
>>other than debug information.i am sure i can reduce it but i dont
>>what are all the settings that affect.
>
>
> If you have any global variables, they add to executable size. Large global
> arrays can have a dramatic impact on executable size. (Yet another
> reason to avoid globals.)

If they're uninitialized, they won't increase executable size AFAIK.
Often a section with zero physical size and a big virtual size exists then.

HTH,

Micha.

Benny Hill

unread,
Sep 29, 2003, 11:07:43 AM9/29/03
to

Hi Vijay,

Remy mentioned third-party executable compressors. I recommend
taking a look at UPX (http://upx.sourceforge.net/). It's free and open
source (GPL).

--
Benny
Remove your rose colored glasses if you'd like to e-mail me.

0 new messages