HP SunSoft Pascal 4.0 User Manual

Page 46

Advertising
background image

22

Pascal 4.0 User’s Guide

3

You set options within comments, which can be delimited by either

{ and }

or

(* and *)

. The first character in the comment must be the

$

(dollar sign).

$

must be immediately followed by an option letter. Next must be either

+

,

-

, or

*

.

If you want to set more than one option, you can insert a comma after the first
option, followed by another option letter and

+

,

-

, or

*

. You can set any

number of options on a single line. There must be no embedded spaces. You
can place spaces and other ordinary comment text after the last

+

,

-

, or

*

.

The new option setting takes effect at the next noncomment token.

The symbols

+

(plus sign) and

-

(minus sign) turn the option on and off,

respectively. To understand the symbol

*

, you must know how options work

in Pascal.

Except for

b

, each option in Table 3-2 has a current value and a “first in, last

out” stack of up to 16 values. Again, except for

b

, each option can be on or off.

When you begin compiling a program, each stack is empty and each option has
an initial current value, which may be the option default value or may have
been set on the command line.

1. The options

p

and

t

are different when they are used within program text and when they are used on the

command-line because they are received directly by

pc0

when they are used in program text, while the

compiler driver gives them to other compiler passes when they are given on the command-line. If you want
to set them on the command-line and also want them to have the same effect as passing them in program
text, use the

Qoption

command-line option to pass them directly to

pc0

.

P

Uses partial evaluation of

boolean

expressions.

t

Uses runtime checks (same as C, but different from the command-line

t

1

).

u

Trims to 72-character line (not usable on command-line).

w

Prints warning diagnostics.

Table 3-2

Options That Can Be Passed in Program Text (Continued)

Option

Description

Advertising