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

  1.      
  2.      
  3.                      Comments on Porting
  4.                          Benchmarks
  5.                    by GTE Sylvania Systems
  6.                          to DEC Ada
  7.      
  8.                                                             Tool 10_2
  9.                                                             August 22, 1985
  10.      
  11. COMPILATION
  12. -----------
  13.   A VMS command file was created for the Ada benchmarks from the
  14.   ordered list of compilation units provided in the file WHETADA.COM
  15.   and the users manual, page 4.  Command files were not required
  16.   to compile the "C", Fortran or Pascal benchmarks.
  17.      
  18.   We were able to recompile the Ada BENCHMARKS without changing
  19.   any of the code.  The Fortran, Pascal and "C" benchmark files
  20.   required the removal of Ada comment indicators ("--") from the
  21.   code in order for these files to successfully compile.
  22.   The files WHETADAA.ADA, WHETADAB.ADA, WHETADAC.ADA, WHETADAD.ADA
  23.   and DHRYADAA.ADA were compiled to test the Ada compiler; the files
  24.   WHETPASA, WHETPASB, WHETPASC and WHETPASD were compiled to test
  25.   the Pascal compiler; the files WHETFORA, WHETFORB, WHETFORC and
  26.   WHETFORD were compiled to test the Fortran 77 compiler; and the
  27.   files WHETCA.C and WHETCB.C were compiled to test the "C" compiler.
  28.      
  29.      
  30. EXECUTION
  31. ---------
  32.   We were able to execute the series of WHETADA, WHETFOR, and WHETPAS
  33.   benchmark programs and  each appeared to be in working condition.
  34.   The series of WHETADA, WHETFOR and WHETPAS benchmarks measures
  35.   processor speed.  In order to compare the processor with/without
  36.   a math library and with/without a full set of checks, four modules
  37.   were created.  These modules are labeled A, B, C and D.  The modules
  38.   are defined as follows:
  39.      
  40.        A    stubbed math library, no checks
  41.        B    stubbed math library, full checks
  42.        C    full math library, no checks
  43.        D    full math library, full checks
  44.      
  45.   To use the Ada WHETSTONE benchmark, a file named "ENVIRON.INF" must be
  46.   created which contains information such as machine type, operating
  47.   system, physical memory and name of the compiler being tested.  The
  48.   users manual provides a good example of the format of the ENVIRON.INF
  49.   file.  Output from the Ada WHETSTONE benchmark is placed into a file
  50.   named "Wnnddhhmm.DAT".  This data file was complete when viewed after 
  51.   the benchmark tests.
  52.      
  53.   The second benchmark, the Ada DHRYSTONE benchmark, also executed without
  54.   difficulty.  The Ada DHRYSTONE benchmark measures statement execution
  55.   per unit time.  Output from DHRYSTONE is similiar to the WHETSTONE 
  56.   benchmark.
  57.      
  58.   The Pascal and Fortran series is available only in the WHETSTONE
  59.   version.  Both of these benchmark series executed without difficulty.
  60.      
  61.   The "C" benchmark programs, WHETCA.C and WHETCB.C would not link.
  62.   When the VAX linker was invoked against these programs, the linker
  63.   found seven "undefined symbols" in the "C" program WHETCA.C and
  64.   the same seven "undefined symbols" in program WHETCB.C.  These symbols
  65.   were: C$MAIN, CREAT, FCLOSE, FDOPEN, FPRINTF, FTIME and PRINTF.  The 
  66.   problems with linking the "C" programs appears to be with library calls 
  67.   from the programs.
  68.  
  69.