[net.sources] Dhrystone in C.

gisle@oslo-vax.ARPA (Gisle Hannemyr) (01/05/86)

The following is posted on behalf of a collegue without access to the
net:

The translation Rick Richardson did from ADA to C  contains  one  bug
(at  least  in  the copy I received). The variable String1Loc (called
String_Loc_1 in Comm.   ACM, Oct.   84, Vol.    27,  No  10)  is  not
initialized  in  the  C  version.   As  a  consequence,  the  lexical
comparization in the function Func2 (called Func_2  originally)  will
terminate  on  the  first character, instead on the 20'th.  This will
improve the no. of Dhrystones/sec. with approx. 20 %.

The  String1Loc  should  be  initialized just before the main loop in
Proc0 (Proc_0) starts.

- Haakon Bugge (c/o gisle@oslo-vax.ARPA)