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

Can I reduce the size of jmp_buf?

Hi,

The jmp_buf defined in setjmp.h needs a large buffer, typedef __int64 jmp_buf[48]; //384 bytes

As we checked in function setjmp/longjmp used by Cortex M0/M3, it is used to save only few run-time data such as R0, R1, ...

On some platform which has very limited memory resource, the 384 bytes seems too expensive.
What's the minimal size of jmp_buf?

Thanks!