Jump to content
Jagware
Sign in to follow this  
Starcat

Instability in big binaries

Recommended Posts

Starcat    0

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

Share this post


Link to post
Share on other sites
SCPCD    0

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 ?

 

 

 

Share this post


Link to post
Share on other sites
Starcat    0

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

 

 

Share this post


Link to post
Share on other sites
GT Turbo    3

One word with short instructions like nop :-) but more with some move featuring adress like : move.l $xxxxxxxx, $xxxxccccc

Share this post


Link to post
Share on other sites
Starcat    0

Of course, that makes sense. :-) It has to store the adresses afterall.

Share this post


Link to post
Share on other sites
Starcat    0

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.

Share this post


Link to post
Share on other sites
SCPCD    0

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

 

 

 

 

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×