R path – HP SunSoft Pascal 4.0 User Manual

Page 65

Advertising
background image

The Pascal Compiler

41

3

-R

(Solaris 1.x only) The

–R

option instructs

pc

to call the assembler,

as

(1). This

option merges the data segment of the resulting program with the text
segment. See also

-xMerge

(Solaris 2.x only).

-R

path

[

:

dir

]

(Solaris 2.x only) The

-R

path

[:

dir

]

option passes a colon-separated list of

directories that specify the library search path used by the runtime linker. If
present and not null, it is recorded in the output object file and passed to the
runtime linker.

If both

LD_RUN_PATH

and the

-R

option are specified, the

-R

option takes

precedence.

-Rw

The

-Rw

option checks and issues warnings on record fields which are used,

but not set.

By default, the Pascal compiler generates warnings of this kind for whole
variables, but not for fields.

This option works only for local record variables that are defined in procedures
or functions, not for global variables, that is, variables that are in the main
program or in a separately compiled module. This is because global variables
may appear to be initialized not in the main program itself, but in some
procedure or function that is compiled separately, which is subsequently
linked to the executable program.

This option is suppressed when the

-Z

option is on. See “–Z” on page 66. In

this case, all local variables and their components are initialized by zero values.

When this option is on, the compiler performs a full analysis (as far as possible
at compile time) of how record fields are assigned and used. Warnings contain
full access constructs for fields which are used, but not set, for example,

V.F1.F2^.F3

.

Advertising