Reference Guide

58 Chapter 4
Assembler Directives and Pseudo-Operations
.ALLOW Directive
.ALLOW Directive
The .ALLOW directive tells the Assembler to temporarily allow PA-RISC
features from a higher version level of the PA-RISC architecture. The
.ALLOW directive also tells the Assembler to temporarily allow
implementation-specific features in the assembly source file.
Syntax
.ALLOW 1.1
Lines of source code
.ALLOW
Parameters
1.1 Allows PA-RISC 1.1 features.
2.0 Allows PA-RISC 2.0 features.
Discussion
Use the .ALLOW directive with the .LEVEL directive. The Assembler uses
the .LEVEL directive to mark the relocatable object file with the proper
PA-RISC architecture version level. In the source file, the Assembler
emits warning messages whenever a feature is used that is not
appropriate for the specified .LEVEL directive.
Use the .ALLOW directive when it is necessary to include features or
instructions from a later version of PA-RISC while leaving the
relocatable object file marked as an earlier PA-RISC architecture
version. For example, use the .ALLOW directive when you need to
include PA-RISC 2.0 features or instructions while leaving the
relocatable object file marked as a PA-RISC 1.1 architecture version.
NOTE A 2.0W parameter is not permitted with .ALLOW, because the code
generated for 2.0W(64-bit mode) is incompatible with other levels.