Compiler basics

When you plan an application, one of the fundamental topics to think about is the compiler format in which you want that application generated. PowerBuilder offers two alternatives: Pcode and machine code.

Pcode

Pcode (short for pseudocode) is an interpreted language that is supported on all PowerBuilder platforms. This is the same format that PowerBuilder uses in libraries (PBL files) to store individual objects in an executable state. Advantages of Pcode include its size, reliability, and portability.

Machine code

PowerBuilder generates and compiles code to create a machine code executable or dynamic library. The key advantage of machine code is speed of execution.

NotePowerBuilder DLLs cannot be called PowerBuilder machine code DLLs cannot be called from other applications.

Deciding which one to use

Here are some guidelines to help you decide whether Pcode or machine code is right for your project: