Solved

Compile to p-code?

Posted on 1998-11-04
1
150 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
[X]
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
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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

729 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