Path: chuka.playstation.co.uk!news From: Chris Chadwick Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Optimise Problem - trunced data Date: Wed, 23 Jul 1997 00:48:02 -0700 Organization: PlayStation Net Yaroze (SCEE) Lines: 43 Message-ID: <33D5B732.3AC9@dial.pipex.com> References: <333d7fd9.23907964@news.playstation.co.uk> <33424023.72C4@interactive.sony.com> NNTP-Posting-Host: al229.du.pipex.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.02 (Win95; I; 16bit) sceetech wrote: > > Alex Amsel wrote: > > > > When switching on the optimisingt options in gcc, my program gives > > something like the following error: > > > > relocation truncated to fit: GPREL RSDOFSX > > > > Same happens if I ever use RSDOFSY. > > > > These are defined in libps.h as extern short RSDOFSX[2] > > > > Couple of other questions: > > > > How can I set the stack to be in the data cache? > > How big is the stack? [or is it just 'however'] > > > > * Alex Amsel * Into Beyond Web Design & JAVA Programming * > > * http://www.intobeyond.com * WWFC for the Treble 2026 * > > >Sillytuna: Official Sony Yaroatsi PlayStation Developer!< > > I tried using PSDCNT and that didn't work either. A lot of things seem > to have been left in from the full libraries, which just don't work on > the cut down Yaroze library. I'm afraid this is another case. > ... Is there no way around this problem? Does this mean we can't use optimization with any code that uses any of the libps global variables? If so this basically means none of the globals can be used because everyone is going to want their stuff to run as fast as possible by using optimization (I know I do!) What a bummer :( especially when everythings OK when using the -O0 switch... wee-urd! BTW sceetech: what do you mean by 'a lot of things seem to have been left *in* from the full libraries... ', and what baring would this have on the problem? Any help/info appreciated Chris