Compiler Operations

The following functions manipulate the compiler's operation:

#ALIGN

Align the next instruction to a boundary.

%DEF

Determine if an equate has been previously defined

%PB_COMPILETIME

Contains the date and time of compilation.

#BREAK

Enable or disable "Control-Break" as a means of terminating the program.

#BLOAT

Artificially inflate the disk image size of a compiled program

#COMPILE

Determine which type of file will be created by the compiler

#CONSOLE          

Enable or disable auto-creation of a console window upon execution of the program.

#DEBUG CODE

Compiler directive to suppress generation of debugging code.

#DEBUG DISPLAY

Display a message when an untrapped run-time error occurs.

#DIM

Specify if variables must be declared before use

#EXPORT

Declare a Sub/Function to have the EXPORT attribute.

#IF

Define sections of source code to be compiled or ignored

#LINK

LINK a pre-compiled Static Link Library (SLL) into your host program.

#OPTIMIZE

Choose between faster execution or smaller code size

#OPTION

Establish various compiler options.

#REGISTER

Control automatic allocation of Register variables

#STACK

Set the maximum potential stack size

#TOOLS

Enable/disable integrated development tools in compiled code

#UNIQUE

Specify whether unique variable names are required.

DECLARE

Explicitly declare a Sub or Function

DEFBYT

Declare the default variable type to be Byte

DEFCUR

Declare the default variable type to be Currency

DEFCUX

Declare the default variable type to be Extended Currency

DEFDBL

Declare the default variable type to be Double-precision

DEFDWD

Declare the default variable type to be Double-word

DEFEXT

Declare the default variable type to be Extended-precision

DEFINT

Declare the default variable type to be Integer

DEFLNG

Declare the default variable type to be Long-integer

DEFQUD

Declare the default variable type to be Quad-integer

DEFSNG

Declare the default variable type to be Single-precision

DEFSTR

Declare the default variable type to be String

DEFWRD

Declare the default variable type to be Word

DIM

Declare and dimension arrays, scalar variables, and pointers

ERASE

Deallocate array memory

GLOBAL

Declare global (shared) variables between Subs and Functions

INSTANCE

Declare Instance variables which are unique to each object

LOCAL

Declare local variables in a Sub or Function

MACRO

Define a single or multi-line text substitution block

OPTION EXPLICIT

Force explicit declaration of all variables

PBMAIN

Define the initial entry-point Function for an application

PREFIX/END PREFIX

Executes a series of statements, each of which utilizes pre-defined source code.

PROFILE

Capture an execution time profile of the Subs and Functions

REDIM

Declare dynamic arrays, allocate, reallocate, deallocate memory

REGISTER

Define local Register variables within a Sub or Function

STATIC

Declare static variables inside of a Sub or Function

STRPTR

Return the address of the data held by a variable length string

VARPTR

Return the 32-bit address of a variable or string handle

WINMAIN

Define the initial entry-point Function for an application