Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Compile to p-code?

Posted on 1998-11-04
1
142 Views
Last Modified: 2010-04-30
What exactly is this option in VB5: Compile to p-code?  I've noticed when using this option my compiled programs seem to run faster and it definitly compiles a lot faster.  Is this one of those Pentium things where the program compiled this way will only run on Pentium?  or will my program run on any computer?

Thanks for the help
0
Comment
Question by:dokken
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 40 total points
ID: 1443079
P-code is Pseudo Code and not Pentium code. Pseudo code is like tokenized basic back in the interpretive days. The compile time is reduced as 80x86 code is not generated. The runtime should be *longer* as the p-code has to be converted to x86 opcodes to run. What p-code gives you is platform independence. you should be able to send a p-code module to a VB runtime on another (non 80x86) platform (are there any?) have it run there without mod. Since I don't know of VB interpreters running on anything other than wintel boxes, the use of this is moot.

M

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question