6502/Z80 speed comparison (was MITS 2SIO serial chip?)

From: Ben Franchuk <bfranchuk_at_jetnet.ab.ca>
Date: Sat Dec 22 02:16:53 2001

CLeyson_at_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
Received on Sat Dec 22 2001 - 02:16:53 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:33:41 BST