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.

#BLOAT

Artificially inflate the disk image size of a compiled program

#COMPILE

Determine which type of file will be created by the compiler

#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.

#MESSAGES

Specify which messages should be sent to a Control Callback Function

#OPTIMIZE

Choose the optimization which should be applied to your program.

#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

DLLMAIN

Function called by Windows each time a DLL is loaded into, and unloaded from, memory

ERASE

Deallocate array memory

GLOBAL

Declare global (shared) variables between Subs, Functions, Classes, Methods, and Properties

INSTANCE

Declare Instance variables which are unique to each object

LIBMAIN

Function called by Windows each time a DLL is loaded into, and unloaded from, memory

LOCAL

Declare local variables in a Sub, Function, Method or Property

MACRO

Define a single or multi-line text substitution block

OPTION EXPLICIT

Force explicit declaration of all variables

PBLIBMAIN

Function called by Windows each time a DLL is loaded into, and unloaded from, memory

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, Functions, Methods, and Properties

REDIM

Declare dynamic arrays, allocate, reallocate, deallocate memory

REGISTER

Define local Register variables within a Sub, Function, Method, or Property

STATIC

Declare static variables inside of a Sub, Function, Method, or Property

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