Re: VB Com compatibility

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: John Eikanger [MSFT] (johnei_at_online.microsoft.com)
Date: 09/20/04


Date: Mon, 20 Sep 2004 20:12:34 GMT

C/C++ components are generally going to be faster, but vb is actually
faster for some things according to a site I saw years ago. How much will
depend on what you are doing. The common wisdom holds that VC++ is about
10% faster vb6, which seems high to me. YMMV

If this is a speed critical application, one thing to take into
consideration is that there is overhead using COM regardless of the
languages used. You need to minimize round trips to get better
performance. This is especially true when you use late binding or DCOM.
As with anything else, make it flexible when you design it and optimize as
needed.

Hope this helps,

John Eikanger
MSDN Communities Team
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| Date: Mon, 20 Sep 2004 10:35:14 -0700
| From: Ken Halter <Ken_Halter@Use_Sparingly_Hotmail.com>
| Subject: Re: VB Com compatibility
| X-Tomcat-NG: microsoft.public.vb.com
|
| rcc wrote:
| > A lot. VB is interpreted (compiled first to "p-code" but still
| > interpreted) while VC is compiled directly to machine code.
|
| Man... you seem to have fallen "behind the times" there. VB can be
| compiled to native code as well as P-Code.
|
| Basically Visual
| "Visual Basic 5 uses the same compiler technology as Visual C++"
| http://www.pgacon.com/BVColumns/BV11.HTM
|
| A Quick Tour of Visual Basic 5.0
| http://www.winnetmag.com/Windows/Article/ArticleID/23/23.html
|
| Of course, it's hard(er) to control "bloat" in VB but that has nothing
| to do with p-code vs machine code.
|
| --
| Ken Halter - MS-MVP-VB - http://www.vbsight.com
| Please keep all discussions in the groups..
|



Relevant Pages

  • Re: VB Com compatibility
    ... rcc wrote: ... > interpreted) while VC is compiled directly to machine code. ... compiled to native code as well as P-Code. ... "Visual Basic 5 uses the same compiler technology as Visual C++" ...
    (microsoft.public.vb.com)
  • Re: Compiler paradoxes
    ... still buy the CFront compiler.) ... PowerBuilder application to machine code (instead of P-Code), ...
    (borland.public.delphi.non-technical)
  • Re: How do I dig a memory value out?
    ... The only C compiler I could find at the time was ... The Atari keyboard was missing several characters, ... higher level language plus a few common data types ... hand tweeked machine code was entered directly in the ...
    (microsoft.public.vb.general.discussion)
  • Re: Native Code vs PCode
    ... > a disagreement over the term "interpret". ... > how this p-code is executed. ... > form of run-time translation of p-code to native code, ... There is no JIT compiler ...
    (microsoft.public.vb.general.discussion)
  • Re: Basic compiler
    ... stand-alone executables in machine code were the "Einstein Compiler" ... and Microsoft's TASC (The AppleSoft Compiler). ...
    (comp.sys.apple2)