Let's leave compilers out of the equation. Even the same small-C compiler,
targeted at the two quite different CPU's potentially represent a significant
skew in favor of one or another of the two.
Dick
----- Original Message -----
From: "Ben Franchuk" <bfranchuk(a)jetnet.ab.ca>
To: <classiccmp(a)classiccmp.org>
Sent: Saturday, December 22, 2001 1:16 AM
Subject: Re: 6502/Z80 speed comparison (was MITS 2SIO serial chip?)
CLeyson(a)aol.com wrote:
<snip>
> Here is the code from Numerical Recipies for an insertion sort (Fortran and
C)
<snip>
> {
> int i,j;
> float a;
> for (j=2;j<=n;j++) {
> a=arr[j];
> i=j-1;
> while (i>0 && arr[i] > a );
> arr[i+1] = arr[i];
> i--;
> }
> arr[i=1]=a;
> }
> }
> Ignore the floats and reals for the data, they should be ints or chars for
the
purposes of
our 6502/Z80 benchmark.
Do they have the "Small C Compiler" for the
6502? I know you can get a
Z80 or 8080
compiler under CP/M. Note the version #1 does not have for or &&
instructions.
Also BYTE years ago I think had some Small C benchmarks, any body know
if there
is a copy on the web?
--
Ben Franchuk --- Pre-historic Cpu's --
www.jetnet.ab.ca/users/bfranchuk/index.html