aiv@euraiv1.UUCP (Eelco van Asperen) (09/24/87)
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.
-----------------------------------------+------------------------------