Blog

Understanding Non-Local Jumps (setjp/longjmp) in RISC-V Assembly

By October 26, 2020November 3rd, 2020No Comments

By Daniel Mangum

This post explores RISC-V assembly by examining the implementation of the setjmp and longjmp functions from the C standard library. I frequently find that I grasp concepts more quickly when I have actual code that I can disassemble because it allows me to connect information with intent. I believe RISC-V and similar efforts will fundamentally shift how computers are made and programmed. I hope that sharing my knowledge will inspire the same joy in others that I feel when imagining a future of open hardware.

Read the full technical article.