home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
modula2
/
compiler
/
taylmod2
/
dc.bat
next >
Wrap
DOS Batch File
|
1988-06-30
|
3KB
|
82 lines
echo off
cls
echo DHRYSTONE BENCHMARK
echo ───────────────────
echo
echo The Dhrystone Benchmark is a "synthetic" benchmark test for systems programming
echo languages.
echo "Synthetic" means that the program does not do any useful work, but merely
echo consists of statements that are balanced in terms of the distribution of
echo statement and expression types, data types, and data locality.
echo Execution speed then can be measured in "Dhrystones per second". One "Dhrystone"
echo corresponds to executing 100 statements, including assignments, control
echo statements and procedure calls.
echo
echo The original paper describing the Dhrystone benchmark is
echo
echo Dhrystone: A Synthetic Systems Programming Benchmark, by R.P. Weicker, in:
echo Communications of the ACM, Vol. 27, No. 10, October 1984, pp 1013 - 1030.
echo
echo This article also contains the original Ada program.
echo
if exist tlib.exe if exist tmodula.exe if exist tlink.exe if exist standard.* if exist runtime.* if exist dhry*.* goto p1
echo NOTE: The current directory does not contain all files necessary to continue
echo this procedure. Copy all files from the demo diskette to the current
echo drive and directory or change to the drive and directory containing the
echo demo files.
goto p2
:p1
echo After reading this, press a key to compile and execute the Dhrystone benchmark.
pause
cls
echo First we are creating libraries to contain our compiled modules:
echo TLIB DEMOLIB.DLB/C NUL; (Creates definition library)
tlib demolib.dlb/c nul;
echo TLIB DEMOLIB.ILB/C NUL; (Creates implementation library)
tlib demolib.ilb/c nul;
echo
echo Now we set up the libraries we want to use...
echo SET TLIBS=DEMOLIB,STANDARD,RUNTIME;
echo
set tlibs=XXXXXXXXXXXXXXXXXXXXXXXXX
if "%tlibs%" == "XXXXXXXXXXXXXXXXXXXXXXXXX" goto p3
echo NOTE: There is not enough room in the MS-DOS environment to set up the
echo libraries variable. Please make room by deleting unneeded variables
echo or by configuring MS-DOS for a larger environment area.
set tlibs=
goto p2
:p3
set tlibs=demolib standard runtime;
echo ...compile our definition modules into library DEMOLIB...
echo TMODULA DHRY1.DEF DEMOLIB NUL
tmodula dhry1.def demolib nul
echo TMODULA DHRY2.DEF DEMOLIB NUL
tmodula dhry2.def demolib nul
echo TMODULA DHRY3.DEF DEMOLIB NUL
tmodula dhry3.def demolib nul
echo
echo ...compile our implementation modules...
echo TMODULA DHRY2,,NUL
tmodula dhry2,,nul
echo TMODULA DHRY3,,NUL
tmodula dhry3,,nul
echo
echo ...into library DEMOLIB...
echo TLIB DEMOLIB NUL +DHRY2 +DHRY3;
tlib demolib nul +dhry2 +dhry3;
echo
echo ...compile the main module...
echo TMODULA DHRY,,NUL
tmodula dhry,,nul
echo
echo ...link it (ignore the Warning L5, it appears because of circular
echo module references)...
echo TLINK DHRY,,NUL
tlink dhry,,nul
echo
echo ...and execute the benchmark (50000 iterations will run about 30 seconds on an
echo 80286 system)
echo DHRY
dhry
:p2