Assembler Directives and Pseudo-Operations

.LEVEL Directive

.LEVEL Directive

The .LEVEL directive tells the Assembler which version level of the PA-RISC architecture to accept while assembling the source file. The

.LEVEL directive also tells the Assembler which implementations- specific features are used in the assembly source file.

Syntax

1.0

1.1

.LEVEL ⎨ ⎬ ⎪ 2.0

2.0W

Parameters

1.0Enables PA-RISC 1.0 features. This is the default.

1.1Enables PA-RISC 1.1 features.

2.0Enables PA-RISC 2.0 features.

2.0W

Enables PA-RISC 2.0W features and assembles the

 

source for a 64-bit machine.

Discussion

The Assembler marks the relocatable object file to indicate the minimum PA-RISC architecture version level required when executing the object code corresponding to the source file. The linker marks the program file with the highest version level required by any of the object files linked into the program.

The Assembler uses the .LEVEL directive to mark the relocatable object file with the proper PA-RISC architecture version level. For example, if the code is expected to run only on PA-RISC 1.1 architectures, a .LEVEL 1.1 should be inserted at the beginning of the source file.

To assemble a source file for a PA-RISC 64-bit system, use a .LEVEL 2.0W directive as the first directive in the source file.

Chapter 4

93