Need 286 "C" benchmark

Mark Galassi rosalia at tekig4.UUCP
Fri May 31 03:29:25 AEST 1985


In article <146 at tekcrl.UUCP> terryl at tekcrl.UUCP () writes:
>>> int a[50000];
>>> 
>>> main()
>>> {
>>>   int i;
>>>   for (i=0; i<50000; i++) a[i+1] = a[i];
>>> }
>>> 
>>> Dave Trissel    {seismo,ihnp4}!ut-sally!oakhill!davet
>>> Motorola Semiconductor Inc.  Austin, Texas
>>> "I work with 'em and mine works"
>
>     OK, here are times for a 68010 system we use here at Tek running 4.2,
>with ONE wait state for the memory subsystem. This was on an unloaded system.
>Do whatever you want with the times. The compiler was the Greenhills compiler
>for the 68000.
>
>1.2u 0.1s 0:01 99% 0+16k 0+0io 1pf+0w
>1.2u 0.1s 0:01 98% 0+16k 0+1io 1pf+0w
>
>					Terry Laskodi
>					     of
>					Tektronix

We might do things correctly (and show ADA fans that C programs
can respect array boundaries) and use
   for (i=0; i<49999; i++) a[i+1] = a[i];
	       ^^^^^
				Mark Galassi
				tektronix!tekig4!rosalia



More information about the Comp.lang.c mailing list