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

Cortex : Saving registers during interrupts

Hi

Want to know if there is a way to instruct the compiler to preserve more than the normal registers (R0-R3, R12, LR, PSR, and PC) during an interrupt.

Regards
Viktor Bucher

Parents
  • I know that and I did so. Those registers must only be preserved during an interrupt call and not when called from the main program. So this presents a difference. If I put that function in a library It would be a good idea not to preserve those registers and let the compiler do that when needed. That is why a asked the question.

Reply
  • I know that and I did so. Those registers must only be preserved during an interrupt call and not when called from the main program. So this presents a difference. If I put that function in a library It would be a good idea not to preserve those registers and let the compiler do that when needed. That is why a asked the question.

Children