| This article is an orphan, as few or no other articles link to it. Please introduce links to this page from other articles related to it. (December 2009) |
Microsoft's P-Code, short for packed code, is an alternate binary format to native code for any compiled binary (eg: DLLs, ActiveX controls, or Applications). Its primary goal is to produce smaller files. Both the 16-bit Visual C++ and Visual Basic compilers support P-Code.
Using P-Code in Visual Basic
(Version 6) Open the project; open the Project Properties dialog; click on the Compile tab; click the option button Compile to P-Code.
Using P-Code in Visual C++
To turn on use of P-Code, use the Pragma directive, ie:
//Turn P-Code on
#pragma optimize("q", on)
//Turn P-Code off
#pragma optimize("q", off)
This feature is only supported in 16-bit version of Visual C++, however.
See also
- p-code machine (Pascal)
| This article related to Microsoft is a stub. You can help Wikipedia by expanding it. |
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)




