Path: chuka.playstation.co.uk!news From: "Martin Day" Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Optimise Problem - trunced data Date: 7 Aug 1997 15:12:04 GMT Organization: SN Systems Ltd Lines: 16 Message-ID: <01bca344$f70784e0$ca2c9ac2@martin.snsys.com> References: <333d7fd9.23907964@news.playstation.co.uk> <33424023.72C4@interactive.sony.com> <33D5B732.3AC9@dial.pipex.com> <01bc9c44$3fe961e0$ca2c9ac2@martin.snsys.com> <33E39782.6C3F@dial.pipex.com> <01bca0db$fb8dfdc0$ca2c9ac2@martin.snsys.com> <33E8377F.366F@dial.pipex.com> <5s9g9e$oj8@chuka.playstation.co.uk> <33E98CFC.522B@dial.pipex.com> Reply-To: "Martin Day" NNTP-Posting-Host: martin.snsys.com X-Newsreader: Microsoft Internet News 4.70.1162 Chris Chadwick wrote in article <33E98CFC.522B@dial.pipex.com>... > [SNIP] > > I wondered why the GP register was set to point to the *middle* and > indexed with a signed offset instead of simply pointing to the base > and using an unsigned offset. I didn't realize this section was > shared! I guess, then, negative offsets index into .sdata and positive > offsets index into .sbss (or vice versa)... > Depends how big .sdata and .sbss are. If .sdata is small then GP can often end up well into the .sbss section or even past it if that is small too. -- Martin martin@snsys.com +44 117 929 9733