pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
New and Changed Information for 523746–007
• In Chapter 16: Compiling and Linking pTAL Programs (page 355), updated the overview of
the Code Profiling Utilities to include the profile-guided optimization capability.
• In Chapter 17: Compiler Directives (page 367), added descrptions and syntax of the following
directive:
◦ BASENAME directive (Guardian) and -basename directive (Windows)
◦ PROFDIR directive (Guardian) and -profdir directive (Windows)
◦ PROFGEN directive (Guardian) and -profdir directive (Windows)
◦ PROFUSE directive (Guardian) and -profuse directive (Windows)
• In Appendix A: Syntax Summary (page 432), added syntax descriptions of the preceding
directives.
Document Organization
This document is organized as follows:
Table 1 Summary of Contents
This chapter . . .Chapter
Describes the differences between pTAL and TAL, and the
applications, features, system services and procedures of
pTAL.
Chapter 1: Introduction to pTAL
Describes pTAL language elements, such as character set,
keywords, delimiters, operators, symbols, declarations,
constants, and statements.
Chapter 2: Language Elements
Describes pTAL variables and constants, including data
types and address types.
Chapter 3: Data Representation
Describes how data items are aligned; covers the
misalignment tracing facility and misalignment handling.
Chapter 4: Data Alignment
Describes expressions. An expression is a sequence of
operands and operators that produces a single value.
Chapter 5: Expressions
Operands in an expression include variables, constants,
and routine identifiers. Operators in an expression perform
arithmetic or conditional operations on the operands. pTAL
supports arithmetic, address, constant, and conditional
expressions.
Describes how to declare LITERALs and DEFINEs and refer
to them throughout the program. A LITERAL declaration
Chapter 6: LITERALs and DEFINEs
associates identifiers with constant values. A DEFINE
declaration associates identifiers and parameters with text.
Describes the syntax for declaring simple variables. A
simple variable is a single-element data item of a specified
data type that is not an array, a structure, or a pointer.
Chapter 7: Simple Variables
Describes the syntax for declaring arrays. An array is a
one-dimensional set of elements of the same data type.
Chapter 8: Arrays
Describes structures. A structure is a collectively stored set
of data items that you can access individually or as a
group.
Chapter 9: Structures
Describes the syntax for declaring and initializing pointers
you manage yourself.
Chapter 10: Pointers
Document Organization 19