Re: Source of EXE Size OT
- From: Duane Bozarth <dpbozarth@xxxxxxxxxxxx>
- Date: Tue, 13 Sep 2005 10:34:08 -0500
Ralph wrote:
>
....
> If you all don't mind I would like to piggy-back on this thread and ask a
> question.
>
> There is a phenomena in VB6 when compiling to native code the exe will grow
> by a small amount with each compile, even if there has been NO change in
> code. The solution is generally to close the project, cleanout the files and
> go again. So there is no long lasting harm.
>
> But I have been curious all these years - has anyone ever come up with an
> explanation of where those extra bytes are coming from. I have occasionally
> googled, but never found anything but the complaints, never an answer. Doing
> a compare on the exe appears to show a growth in both .text and .data (tho
> seldom equal).
Can't say I ever noticed it (I don't look at .exe size too often--it's
whatever it's going to be, for the most part w/ a language like VB).
The only thing I can say wrt the question you pose is a recollection of
a discussion some time ago wherein it (iirc) appears the actual .exe
size is a multiple of 64k rather than the actual generated code size. I
do recall doing really quick 'n dirty check and added only a small bit
of code to a minimal project and discovered that it did appear to be
true at least in that instance.
I had forgotten this tidbit when responding to Dan. If it is true in
general, then one would expect that the code size would jump in
increments. I guess another question I didn't ask was whether he is
generating p-code or native and whether he has changed any of the
default compiler options (empahsize speed over size comes to mind).
.
- Follow-Ups:
- Re: Source of EXE Size OT
- From: Dan Johnson
- Re: Source of EXE Size OT
- From: Jim Mack
- Re: Source of EXE Size OT
- References:
- Source of EXE Size
- From: Dan Johnson
- Re: Source of EXE Size
- From: Duane Bozarth
- Re: Source of EXE Size
- From: Dan Johnson
- Re: Source of EXE Size
- From: Duane Bozarth
- Re: Source of EXE Size OT
- From: Ralph
- Source of EXE Size
- Prev by Date: Re: Check if a form is loaded
- Next by Date: Re: Check if a form is loaded
- Previous by thread: Re: Source of EXE Size OT
- Next by thread: Re: Source of EXE Size OT
- Index(es):
Relevant Pages
|