Re: Source of EXE Size OT



Aside from any resources (graphics, etc) you may have added, the EXE will
grow as a result of code that is added as well.

After compiling to native code for many years, I started using p-code. For
many applications, it produces smaller executables with no apparent change
in performance. If you are concerned about EXE side, you might play around
with that a little.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"Dan Johnson" <johnson@xxxxxxxxxx> wrote in message
news:2d294$4326ff9c$d826dfe9$25915@xxxxxxxxxxxxxx
> > 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).
>
> I'm compiling to native code, and optimizing for speed. Haven't changed
any
> of these options in a long time.
>
> While I understand exe size for a VB app may not carry much significance,
> I'm still somewhat surprised that there don't seem to be many tools that
can
> be used to identify "bloat". I can remember leaving an unneeded huge
image
> file in a picture frame once, where the image was positioned in such a way
> that there was no way I would ever see it during normal VB use...a
situation
> where it would be nice to have something pointing you to the potential
> problem.
>
> Dan
>
>


.



Relevant Pages

  • Re: Printing variables to screen, when in debug
    ... >>> evaluation tool (CosmoScope). ... >>Are you aware of the immediate window, and the Debug object? ... > But do remove before compiling as they slow your program down. ... For example, Debug.Print statements, while ignored in the run-time .exe, are ...
    (microsoft.public.vb.general.discussion)
  • Re: Update #1 - Initialization Failure on Running Apps...
    ... I have exactly the same problem after actually compiling the application. ... so when using the "old" exe and debug info things are ... then repair again and I'm hoping that it'll download a fresh update. ...
    (borland.public.delphi.non-technical)
  • Re: Compiled, Tokenized or Interpreted?
    ... the tokenized and interpreted nature of VBA. ... VB Classic (which is the development environment this group supports) can be ... Here's a page that discusses compiling to native code. ...
    (microsoft.public.vb.general.discussion)
  • Re: LNK1106: Invalid file or disk full: cannot seek to 0x68e2.
    ... > server and the users run the EXE from a shorcut on their desktop. ... The error you're getting - if it's network related - occurs when you save ... If that's not the case and you're already compiling locally, ...
    (microsoft.public.vb.general.discussion)
  • Re: Native Code vs PCode
    ... The point being that P-code is interpreted rather than being converted to ... Native code compilation provides several options for ... By compiling directly to native code ... Among the services provided by this DLL are ...
    (microsoft.public.vb.general.discussion)