home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / test / jpmobnch.cmm < prev    next >
Encoding:
Text File  |  1988-05-03  |  3.4 KB  |  71 lines

  1.  
  2.  
  3.                      Comments on Porting
  4.                           Benchmark       
  5.                          by WIS JPMO
  6.                          to DEC Ada
  7.  
  8.                                                                Tool 37
  9.                                                                October 4, 1985
  10.  
  11.  
  12. COMPILATION
  13. -----------
  14.   A VMS command file was created from the ordered list of compilation
  15.   units provided in BENCHSRC.DIS.
  16.  
  17.   We were able to recompile BENCHMARK with minor changes in two files.
  18.   Compilation errors occurred due to packages that were "withed" but 
  19.   not delivered with the source code, syntax errors in declarations 
  20.   and compiler specific pragmas.  The following files were changed on 
  21.   the lines indicated.
  22.  
  23.    1.  In file COMPM50.TXT
  24.              lines 6, 7, 8, 9, 10, 20, 21, 22, 23 and 24 all references
  25.              to library units COMPK26 through COMPK50 were deleted because
  26.              they were not included in the source code and no reference
  27.              was made to them in the documentation.  It is possible that
  28.              these library units were part of another tool produced by 
  29.              the same developer.  
  30.  
  31.              lines 15, 16, 17 and 18 were part of a continuous addition
  32.              assignment to variable "L".  Compilation errors occurred 
  33.              because each line ended ambiguously without a "+" sign to
  34.           continue the addition statement.  A "+" sign was added to the 
  35.              end of each line. 
  36.  
  37.    2.  In file  IMP.TXT
  38.              lines 13, 14, 15, 16, 17, 18, 19 and 20 all "suppress" 
  39.              pragma references were deleted because inclusion of 
  40.              "pragma suppress" produced compiler errors stating that 
  41.              "pragma suppress" was not supported by the implementation.
  42.  
  43.              lines 85 and 86 produced compilation errors due to references 
  44.              made to "direct_io.count", without first instantiating DIRECT_IO. 
  45.              These errors were resolved by including an instantiation
  46.              of DIRECT_IO and using this instantiation to reference "count".
  47.  
  48.              lines 86 and 87, which contained "put" statements, would not 
  49.              compile on the DEC compiler.  The parameters within the put 
  50.              statements were "direct_io.count'last" and "text_io.count'last" 
  51.              which both produced a value of type "direct_io.count" and 
  52.              "text_io.count" respectfully.   These parameters required the 
  53.              use of the generic package INTEGER_IO rather than TEXT_IO,
  54.              because they were not of type "character" or "string".  Rather,
  55.              they were a discrete type of type "count".  However, INTEGER_IO  
  56.              had been instantiated with type "integer".  Further instantiations
  57.              were added of type "direct_io.count" and "text_io.count".  
  58.              These instantiations permitted the code to compile.  It was 
  59.              also noted that the parameters of the "put" statement could 
  60.              have first been converted to type "integer", thereby avoiding 
  61.              the additional instantiations.  
  62.             
  63.              These errors may not have been recognized by the unvalidated 
  64.              compiler on which the tool was developed.
  65.  
  66. EXECUTION
  67. ---------
  68.   We were able to execute the BENCHMARK and it appeared to be in workable
  69.   condition.  
  70.  
  71.