BSD 4_1_snap release
[unix-history] / usr / src / cmd / px / READ_ME
index 400809e..c4fcef8 100644 (file)
@@ -1,10 +1,14 @@
+Copyright (c) 1979 Regents of the University of California
+
+sccsid = "@(#)READ_ME 1.1 1/7/81"
+
    This directory contains the source code for the Version 7 VAX
 interpreter for Pascal. Following standard convensions, the makefile
 contains four commands:
 
    This directory contains the source code for the Version 7 VAX
 interpreter for Pascal. Following standard convensions, the makefile
 contains four commands:
 
-       px - compile and load px.
+       px - compile px
 
 
-       install - compile px and install it in /usr/ucb
+       install - compile and install px in /usr/ucb
 
        clean - clean out directory
 
 
        clean - clean out directory
 
@@ -14,12 +18,6 @@ contains four commands:
 
 Bugs and Limitations:
 
 
 Bugs and Limitations:
 
-   Output of reals of value less than 1 does not print out a leading
-zero. (eg 1.0e-01 prints as .1 rather than 0.1)
-
-   Pi does not compute stdio format strings, so they must be computed
-at run time. (see 31writeold.s for details)
-
    Runtime error messages could give far more information than they
 currently do. (eg the actual value of a subscript which is out
 of range)
    Runtime error messages could give far more information than they
 currently do. (eg the actual value of a subscript which is out
 of range)
@@ -28,8 +26,7 @@ of range)
 the runtime errors. (eg fixed overflow, interrupt, etc)
 
 
 the runtime errors. (eg fixed overflow, interrupt, etc)
 
 
-
-Comparison of Pascal interpreter with C compiler
+Comparison of Pascal with C compiler
 
 In an attempt to compare compiled versus interpreted execution speeds
 the 'Tower of Hanoi' benchmark (see hanoi.p, hanoi.c) was run with 
 
 In an attempt to compare compiled versus interpreted execution speeds
 the 'Tower of Hanoi' benchmark (see hanoi.p, hanoi.c) was run with 
@@ -39,14 +36,14 @@ Data:
        number of disks:                   16
        number of moves required:       65535
 
        number of disks:                   16
        number of moves required:       65535
 
-Program                        Run Time        Factor
-C, optimized              2.5            1.0
-C, unoptimized            2.8            1.1
-Pascal, no tests         38.2           15.3
-Pascal, full tests       57.1           22.8
-
-Note: The times for the C programs were obtained by running
-larger problems and scaling them down appropriately.
-
-Berkeley is developing a Pascal compiler which should improve the
-runtime by about a factor of 10.
+Compiler, Flags                  Compile       Compile          Run     Run
+                          Time          Factor          Time   Factor
+Pi, full tests          0.4u+0.4s        1.0           42.7u     1.0
+Pi, no tests            0.3u+0.3s        0.7           35.2u     1.2
+Pc, unoptimized                 3.8u+2.4s        7.7            5.3u     8.1
+Pc, optimized           4.4u+2.3s        8.4            4.6u     9.3
+C, unoptimized          1.7u+1.8s        4.4            2.8u    15.3
+C, optimized            2.0u+2.0s        5.0            2.5u    17.1
+
+Note: The times for Pc and C were obtained by running larger
+problems and scaling the run times down appropriately.