home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / modula2 / compiler / taylmod2 / dc.bat next >
DOS Batch File  |  1988-06-30  |  3KB  |  82 lines

  1. echo off
  2. cls
  3. echo                               DHRYSTONE BENCHMARK
  4. echo                               ───────────────────
  5. echo  
  6. echo The Dhrystone Benchmark is a "synthetic" benchmark test for systems programming
  7. echo languages.
  8. echo "Synthetic" means that the program does not do any useful work, but merely
  9. echo consists of statements that are balanced in terms of the distribution of
  10. echo statement and expression types, data types, and data locality.
  11. echo Execution speed then can be measured in "Dhrystones per second". One "Dhrystone"
  12. echo corresponds to executing 100 statements, including assignments, control
  13. echo statements and procedure calls.
  14. echo  
  15. echo The original paper describing the Dhrystone benchmark is
  16. echo  
  17. echo   Dhrystone: A Synthetic Systems Programming Benchmark, by R.P. Weicker, in:
  18. echo   Communications of the ACM, Vol. 27, No. 10, October 1984, pp 1013 - 1030.
  19. echo  
  20. echo This article also contains the original Ada program.
  21. echo  
  22. if exist tlib.exe if exist tmodula.exe if exist tlink.exe if exist standard.* if exist runtime.* if exist dhry*.* goto p1
  23. echo NOTE: The current directory does not contain all files necessary to continue
  24. echo       this procedure. Copy all files from the demo diskette to the current
  25. echo       drive and directory or change to the drive and directory containing the
  26. echo       demo files.
  27. goto p2
  28. :p1
  29. echo After reading this, press a key to compile and execute the Dhrystone benchmark.
  30. pause
  31. cls
  32. echo First we are creating libraries to contain our compiled modules:
  33. echo   TLIB DEMOLIB.DLB/C NUL;    (Creates definition library)
  34. tlib demolib.dlb/c nul;
  35. echo   TLIB DEMOLIB.ILB/C NUL;    (Creates implementation library)
  36. tlib demolib.ilb/c nul;
  37. echo  
  38. echo Now we set up the libraries we want to use...
  39. echo   SET TLIBS=DEMOLIB,STANDARD,RUNTIME;
  40. echo  
  41. set tlibs=XXXXXXXXXXXXXXXXXXXXXXXXX
  42. if "%tlibs%" == "XXXXXXXXXXXXXXXXXXXXXXXXX" goto p3
  43. echo NOTE: There is not enough room in the MS-DOS environment to set up the
  44. echo       libraries variable. Please make room by deleting unneeded variables
  45. echo       or by configuring MS-DOS for a larger environment area.
  46. set tlibs=
  47. goto p2
  48. :p3
  49. set tlibs=demolib standard runtime;
  50. echo ...compile our definition modules into library DEMOLIB...
  51. echo   TMODULA DHRY1.DEF DEMOLIB NUL
  52. tmodula dhry1.def demolib nul
  53. echo   TMODULA DHRY2.DEF DEMOLIB NUL
  54. tmodula dhry2.def demolib nul
  55. echo   TMODULA DHRY3.DEF DEMOLIB NUL
  56. tmodula dhry3.def demolib nul
  57. echo  
  58. echo ...compile our implementation modules...
  59. echo   TMODULA DHRY2,,NUL
  60. tmodula dhry2,,nul
  61. echo   TMODULA DHRY3,,NUL
  62. tmodula dhry3,,nul
  63. echo  
  64. echo ...into library DEMOLIB...
  65. echo   TLIB DEMOLIB NUL +DHRY2 +DHRY3;
  66. tlib demolib nul +dhry2 +dhry3;
  67. echo  
  68. echo ...compile the main module...
  69. echo   TMODULA DHRY,,NUL
  70. tmodula dhry,,nul
  71. echo  
  72. echo ...link it (ignore the Warning L5, it appears because of circular
  73. echo    module references)...
  74. echo   TLINK DHRY,,NUL
  75. tlink dhry,,nul
  76. echo  
  77. echo ...and execute the benchmark (50000 iterations will run about 30 seconds on an
  78. echo    80286 system)
  79. echo   DHRY
  80. dhry
  81. :p2
  82.