L directory – HP SunSoft Pascal 4.0 User Manual

Page 57

Advertising
background image

The Pascal Compiler

33

3

–L

The

–L

option maps all keywords and identifiers to lowercase. In Pascal,

uppercase and lowercase are not interchangeable in identifiers and keywords.
In standard Pascal, the case is insignificant outside of character strings and
character constants. The

–L

option is most useful for transporting programs

from other systems. See also the

–s

option.

–l

The

–l

option produces a listing of the program. For example:

The first line identifies the version of the compiler you are using. The next line
gives the modification time of the file being compiled. The remainder of the
listing is the source program.

-L

directory

The

-L

directory option adds directory to the

ld

library search path for

ld

.

hostname% pc -l random.p

Pascal PC -- Version SC4.0 09 Jan 1995 Pascal 4.0

Mon Jan 09 09:04 1995 random.p:

1

program random_number(output);

2

var

4

i: integer;

5

x: integer;

6

7

begin

8

for i := 1 to 5 do begin

9

write(trunc(random(x) * 101))

10

end;

11

writeln

12

end.

Advertising