IT lexicon › Programming › P-code

P-code

Programming På svenska → Updated: 2026-11-13

An intermediate machine code for Pascal — source is compiled to P-code, then interpreted by a virtual machine rather than running natively.

Niklaus Wirth abandoned direct native compilation and chose P-code for Pascal, primarily for portability. A Pascal compiler only needed to produce the same P-code everywhere; a tiny interpreter could then run on any machine. It anticipated Java and .NET, but for the 1970s it was a radical idea. P-code was slower than native code, but the tradeoff for portability was worth it.

← Back to the lexicon