Update: Actually gcc will optimize out alloca with higher -O setting. Make sure it desn't happen by using an asm trick.
Update: Actually gcc will optimize out alloca with higher -O setting. Make sure it desn't happen by using an asm trick.

danluu/setjmp-longjmp-ucontext-snippets,danluu/setjmp-longjmp-ucontext-snippets