This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: ARC assembly: non word aligned memory location

I loaded some integers via an array into registers and assembled using arc.

What does the following error message mean: "Attempting to access non word aligned memory location: 31 at program location 2084. Simulation Ended."

I am seeking to find the average and median of the integers. I performed the average. How would I do a sort to find the midpoint.

Parents
  • ARMs are picky about word alignment. 16-bit quantities have to start on even addresses; 32-bit quantities on multiples of 4. Sounds like you've made a non-aligned access, and the simulator is politely pointing that out. (The real hardware will just give you back garbage that's only somewhat reminiscent of the right data...)

Reply
  • ARMs are picky about word alignment. 16-bit quantities have to start on even addresses; 32-bit quantities on multiples of 4. Sounds like you've made a non-aligned access, and the simulator is politely pointing that out. (The real hardware will just give you back garbage that's only somewhat reminiscent of the right data...)

Children
No data