Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!eurifb!euraiv1!aiv From: aiv@euraiv1.UUCP (Eelco van Asperen) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Wanted: Dr.Dobbs benchmarks for C-compilers Message-ID: <593@euraiv1.UUCP> Date: Thu, 24-Sep-87 07:46:09 EDT Article-I.D.: euraiv1.593 Posted: Thu Sep 24 07:46:09 1987 Date-Received: Sun, 27-Sep-87 09:26:06 EDT Organization: Erasmus University EF/AIV,Rotterdam,Netherlands Lines: 38 Keywords: C,benchmarking compilers Xref: mnetor comp.lang.c:4555 comp.sys.ibm.pc:8316 Has anyone got the source of the benchmarks that were used to test C-compilers in the August 1986 issue of Dr.Dobbs ? If I remember corrrectly, there is a Dr.Dobbs conference on Compuserve but since I'm not on Compuserve, perhaps some kind soul can ask around for me. Since the C-war is getting hot with the advent of Turbo C and MS-C v5.0, enough people might be interested to warrant posting of the benchmarks and their results; they included some nice tests for optimizers. [try the following with Turbo C; main() { int x[10]; int i,j,k; for (i = 0; i < 10; i++) /* dummy to assign some values to x[] */ x[i] = i; i = x[5]; j = x[5]; k = x[5]; /* a *real* optimizer would load this once in a register and * then copy that to i,j and k; an even better optimizer would * not execute these statements at all since they're useless. */ } and compile with tcc -S -O -G -Z -c test.c ] Eelco van Asperen. -----------------------------------------+------------------------------ Erasmus University Rotterdam |uucp:mcvax!eurifb!euraiv1!evas Fac. of Economics, Computer Science Dept.|earn:asperen@hroeur5 PO.box 1738 / 3000 DR Rotterdam | T H E N E T H E R L A N D S |Yet Another Silly Signature. -----------------------------------------+------------------------------