gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] switching to multiple boards


From: Arend Bayer
Subject: Re: [gnugo-devel] switching to multiple boards
Date: Mon, 11 Apr 2005 19:09:45 +0200 (CEST)


On Mon, 11 Apr 2005, Dave Denholm wrote:

> Paul Pogonyshev <address@hidden> writes:
> 
> > I'm thinking of starting wrapping GNU Go board and related global
> > variables into a structure so that we can have several boards in
> > parallel.  I remember being hostile to this idea a few years ago,
> > but maybe we will have to make GNU Go threaded eventually.  Are
> > there any strong positive or negative opinions on this issue?
> >
> 
> A potential benefit is that (the c compiler can generate code such that)
> one register keeps a pointer to that structure. Then accesses to the
> various globals can be accessed more efficiently.

Are you sure?? What is the advantage of relative addressing in the form
(%some register + constant) as compared to (constant)?

> Also, there could be cache benefits, since it can give more control
> over the ordering of the globals in memory.

Well, if the compiler decides to reorder the globals, isn't that his
problem?

Arend





reply via email to

[Prev in Thread] Current Thread [Next in Thread]