Starcat 0 Report post Posted June 9, 2013 Hi folks! I'm having a strange problem. Once a binary reaches a certain size, my project gets instable and crashes. I believe it may have something to do with graphics and code parts being too far apart in memory. Sometimes I got things fixed by rearranging my data. Have you ever noticed anything like that? I'm currently using RLN, but have noticed similar problems with the original tools back in the day. Cheers, Lars Quote Share this post Link to post Share on other sites
SCPCD 0 Report post Posted June 9, 2013 Hi ! It could come from corrupt data by an overlapped memory for exemple. What is the size of your project ? (text, data, bss sections) Does it run from DRAM or cartridge ? Do you use Equates to set predefine memory address ? Quote Share this post Link to post Share on other sites
Starcat 0 Report post Posted June 9, 2013 Some reorganizing of the data fixed it for now, but it's still strange. It's running from RAM. Maybe it's an alignment problem, but I doubt it. Do I remember correctly that a 68k instruction is a word in size? TEXT: 82688 bytes DATA: 680064 bytes BSS: 0 bytes Quote Share this post Link to post Share on other sites
Zerosquare 10 Report post Posted June 9, 2013 Yes it is. Quote Share this post Link to post Share on other sites
GT Turbo 5 Report post Posted June 9, 2013 One word with short instructions like nop :-) but more with some move featuring adress like : move.l $xxxxxxxx, $xxxxccccc Quote Share this post Link to post Share on other sites
Starcat 0 Report post Posted June 10, 2013 Of course, that makes sense. :-) It has to store the adresses afterall. Quote Share this post Link to post Share on other sites
Starcat 0 Report post Posted June 14, 2013 So as it's probably an alignment problem, can you tell me some alignment ciritical things to look out for? If I remember correctly the RISC processors need longword alignment of main ram locations to savely read from and write to. The 68k probably even addresses to branch to and use word/longword operations on. Then there is the alignment of the Object List which needs to be QPhrase aligned for scaled objects to work, right? When I say things crash, what I mean is the display goes blank (to background color). So it may be that just the OP crashes in that case. Quote Share this post Link to post Share on other sites
SCPCD 0 Report post Posted June 14, 2013 OP list should have : - Bitmap object in double phrase aligned - Scaled bitmap in quad phrase aligned - others in phrase aligned. when accessing internal RISC ram with the DSP/GPU : - loadb, loadw and loadp is replaced by a load - storeb, storew and storp is replaced by a store Quote Share this post Link to post Share on other sites