Path: chuka.playstation.co.uk!news From: Developer Support Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Optimise Problem - trunced data Date: Wed, 30 Jul 1997 16:43:23 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 26 Message-ID: <33DF611A.7B30@interactive.sony.com> References: <333d7fd9.23907964@news.playstation.co.uk> <33424023.72C4@interactive.sony.com> <33D5B732.3AC9@dial.pipex.com> <01bc9c44$3fe961e0$ca2c9ac2@martin.snsys.com> NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Martin Day wrote: > > > One possible way round this would be to set up pointers to all the > variables from libps you want to use and then only access them through > these pointers rather than directly. e.g. in libps.h there's a line > > extern int math_errno; > > You could declare > > int *pmath_errno = &math_errno; > > in your program and then access it as *pmath_errno in your code. > -- > Martin martin@snsys.com +44 117 929 9733 Thanks for the info. #define's do the trick as well. If you do a mapfile you can find out where the variables are, and then do a #define. #define psdcnt *(unsigned long *)0x800661e0 #define psdidx *(short)0x800661e4 Stuart