Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!brl-tgr!tgr!gisle@oslo-vax.ARPA From: gisle@oslo-vax.ARPA (Gisle Hannemyr) Newsgroups: net.sources Subject: Dhrystone in C. Message-ID: <1250@brl-tgr.ARPA> Date: Sun, 5-Jan-86 06:34:11 EST Article-I.D.: brl-tgr.1250 Posted: Sun Jan 5 06:34:11 1986 Date-Received: Mon, 6-Jan-86 03:40:40 EST Sender: news@brl-tgr.ARPA Lines: 15 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)