Computer Chess Club Archives


Search

Terms

Messages

Subject: Array addressing and autoscaling

Author: Guido Schimmels

Date: 05:17:34 06/12/98


I'm going to port my program from 68xxx to x86 soon.
My current board represantion is 16 bit int, because the 68xxx
cannot use char values for addressing without type casting.
The 68020 and higher support autoscaling addressing modes,
which will be used everytime when addressing arrays with
elements bigger than 8 bit.
My question is, how do other architectures deal with the problem.
I heard PowerPC for example doesn't support autoscaling and
will have do an extra shift here.
So should I change all my arrays from int to char when possible ?

- Guido



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.