|
|
1.1 root 1: Copyright (c) 1980 Regents of the University of California.
2: All rights reserved. The Berkeley software License Agreement
3: specifies the terms and conditions for redistribution.
4:
5: sccsid = "@(#)READ_ME 5.1 6/5/85"
6:
7: This directory contains the source code for the Version 7 VAX
8: interpreter for Pascal. Following standard convensions, the makefile
9: contains four commands:
10:
11: px - compile px
12:
13: install - compile and install px in /usr/ucb
14:
15: clean - clean out directory
16:
17: print - print out a listing of px
18:
19:
20:
21: Bugs and Limitations:
22:
23: Runtime error messages could give far more information than they
24: currently do. (eg the actual value of a subscript which is out
25: of range)
26:
27: It should be possible to resume execution following many of
28: the runtime errors. (eg fixed overflow, interrupt, etc)
29:
30:
31: Comparison of Pascal with C compiler
32:
33: In an attempt to compare compiled versus interpreted execution speeds
34: the 'Tower of Hanoi' benchmark (see hanoi.p, hanoi.c) was run with
35: the following results:
36:
37: Data:
38: number of disks: 16
39: number of moves required: 65535
40:
41: Compiler, Flags Compile Compile Run Run
42: Time Factor Time Factor
43: Pi, full tests 0.4u+0.4s 1.0 42.7u 1.0
44: Pi, no tests 0.3u+0.3s 0.7 35.2u 1.2
45: Pc, unoptimized 3.8u+2.4s 7.7 5.3u 8.1
46: Pc, optimized 4.4u+2.3s 8.4 4.6u 9.3
47: C, unoptimized 1.7u+1.8s 4.4 2.8u 15.3
48: C, optimized 2.0u+2.0s 5.0 2.5u 17.1
49:
50: Note: The times for Pc and C were obtained by running larger
51: problems and scaling the run times down appropriately.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.