Re: VB6 creates HUGE executable

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 12/02/04


Date: Wed, 1 Dec 2004 20:49:41 -0500


... and here's a definition ...

Compiling Your Project to Native Code

If you have the Professional or Enterprise edition of Visual Basic, you can
compile your code either in standard Visual Basic p-code format or in native
code format. Native code compilation provides several options for optimizing
and debugging that aren't available with p-code.

P-code, or pseudo code, is an intermediate step between the high-level
instructions in your Basic program and the low-level native code your
computer's processor executes. At run time, Visual Basic translates each
p-code statement to native code. By compiling directly to native code
format, you eliminate the intermediate p-code step.

-- 
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Tym" <not@any.time> wrote in message 
news:v1uqq0phvm5ana1rrf6t95fr6a835hccss@4ax.com...
: On Tue, 30 Nov 2004 18:59:34 -0500, "Randy Birch"
: <rgb_removethis@mvps.org> wrote:
:
: > if you switched to a pcode compile, and
: >probably run a lot faster too.
:
: Please explain more... sounds interesting 


Relevant Pages

  • 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: 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)
  • Re: Strange stuff
    ... Try compiling to pcode rather than native code. ... Please respond only to the newsgroups so all can benefit. ... "Jim Carlock" wrote in message ...
    (microsoft.public.vb.general.discussion)
  • Re: C++/CLI is the way to go
    ... you are mixing different object models in your assembly when compiling with /clr or /clr:pure. ... The compiler will throw a warning if native code is generated, by default it does not generate mixed code, without warning. ... No what you are after is "deterministic" destruction PLUS deterministic finalization, and this is the whole point of the discussion. ... The discussion is about automating destruction of managed types, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Native Code vs PCode
    ... situations (p-code, native code with and without the different optimization ... >> code format. ... By compiling directly to native code ...
    (microsoft.public.vb.general.discussion)

Loading