<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello,<br><br>I am trying to develop something like a software cache in CELL. What i do is to simply fetch functions from the main memory to LS at will. But there is problem when a program has global variables. A function is placed at a different LS address each time i fetch it from memory so when i try to access global data it can't find them (something that makes sense). The first solution that comes to my mind is to reserve a register and make it point to the base address of data section(ok this is simple so far), and then i should have register-relative data addressing. I know that the addressing mode used for global data access in SPU programs is absolute addressing. <br>So my actual questions are:<br>1) Is there a way that spu-gcc can change its addressing mode?<br>2) Or even better could you suggest another way of solving my problem?<br><br>Thank you a lot,<br>Nassos<br><br /><hr />Share your memories online with anyone you want <a href='http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1' target='_new'>anyone you want.</a></body>
</html>