home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / pascal / px / READ_ME < prev    next >
Encoding:
Text File  |  1991-04-16  |  3.1 KB  |  81 lines

  1. /*-
  2.  * Copyright (c) 1980 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without
  6.  * modification, are permitted provided that the following conditions
  7.  * are met:
  8.  * 1. Redistributions of source code must retain the above copyright
  9.  *    notice, this list of conditions and the following disclaimer.
  10.  * 2. Redistributions in binary form must reproduce the above copyright
  11.  *    notice, this list of conditions and the following disclaimer in the
  12.  *    documentation and/or other materials provided with the distribution.
  13.  * 3. All advertising materials mentioning features or use of this software
  14.  *    must display the following acknowledgement:
  15.  *    This product includes software developed by the University of
  16.  *    California, Berkeley and its contributors.
  17.  * 4. Neither the name of the University nor the names of its contributors
  18.  *    may be used to endorse or promote products derived from this software
  19.  *    without specific prior written permission.
  20.  *
  21.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  22.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  25.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  27.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  28.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31.  * SUCH DAMAGE.
  32.  *
  33.  *    @(#)READ_ME    5.2 (Berkeley) 4/16/91
  34.  */
  35.  
  36.    This directory contains the source code for the Version 7 VAX
  37. interpreter for Pascal. Following standard convensions, the makefile
  38. contains four commands:
  39.  
  40.     px - compile px
  41.  
  42.     install - compile and install px in /usr/ucb
  43.  
  44.     clean - clean out directory
  45.  
  46.     print - print out a listing of px
  47.  
  48.  
  49.  
  50. Bugs and Limitations:
  51.  
  52.    Runtime error messages could give far more information than they
  53. currently do. (eg the actual value of a subscript which is out
  54. of range)
  55.  
  56.    It should be possible to resume execution following many of
  57. the runtime errors. (eg fixed overflow, interrupt, etc)
  58.  
  59.  
  60. Comparison of Pascal with C compiler
  61.  
  62. In an attempt to compare compiled versus interpreted execution speeds
  63. the 'Tower of Hanoi' benchmark (see hanoi.p, hanoi.c) was run with 
  64. the following results:
  65.  
  66. Data:
  67.     number of disks:            16
  68.     number of moves required:    65535
  69.  
  70. Compiler, Flags          Compile    Compile         Run     Run
  71.                Time         Factor         Time    Factor
  72. Pi, full tests         0.4u+0.4s      1.0        42.7u      1.0
  73. Pi, no tests         0.3u+0.3s      0.7        35.2u      1.2
  74. Pc, unoptimized         3.8u+2.4s      7.7         5.3u      8.1
  75. Pc, optimized         4.4u+2.3s      8.4         4.6u      9.3
  76. C, unoptimized         1.7u+1.8s      4.4         2.8u     15.3
  77. C, optimized         2.0u+2.0s      5.0         2.5u     17.1
  78.  
  79. Note: The times for Pc and C were obtained by running larger
  80. problems and scaling the run times down appropriately.
  81.