Solved

Compile to p-code?

Posted on 1998-11-04
1
132 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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now