|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Using SETJMP and LONGJMP with Code Banking and RTX51Information in this article applies to:
QUESTIONCan the setjmp and longjmp functions be used in code banking programs and/or RTX51 programs? ANSWERThe setjmp and longjmp functions may be used in code banking programs as long as the setjmp and longjmp target located within the same code bank or the common area. Problems arise when jumping from a code bank to the common area or when jumping from the common area to a code bank. The same rules apply for RTX51 programs. Additionally, the setjmp and longjmp target must be located in the same task context. It is impossible to jump from one task to another since different tasks use different stacks. It is not safe to use setjmp and longjmp with RTX51 Tiny since this operating system performs dynamic stack swapping. MORE INFORMATIONLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.