On Mon, 11 Apr 2005, Dave Denholm wrote:
> Paul Pogonyshev <[EMAIL PROTECTED]> 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 _______________________________________________ gnugo-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnugo-devel

