Author: Robert Hyatt
Date: 05:36:35 09/15/04
Go up one level in this thread
On September 15, 2004 at 06:59:30, Tony Werten wrote: >Hi all, > >I was just wondering. Should I declare all my variables (psqtables, hashnumbers >etc ) in the main file so they are all nicely together in memory, or rather in >the file that uses them most, so they are closer to the calling code ? > >Tony Doesn't matter where you declare them if they are global. If they are local, they end up on the stack anyway if they are not static. If static, they won't necessarily be close to the code anyway as code and data are separated due to different memory protection for data vs code.
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.