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

Alignment in ARM?

I could not clearly understand the alignment issues present in ARM. Sometimes I get BUS ERROR while running an assembly file but don't know how to resolve it. Some of the doubts:

1. Is it better to store registers pairwise or individually on the stack?

2. Should alignment be 16-byte or 8-byte?

3. How to be sure that alignment is always correct?

Can someone please throw some light on this topic?