EIP-8013: Static relative jumps and calls for the EVM

Discussion topic for EIP-8013

Five new EVM jump instructions are introduced (RJUMP, RJUMPI, RJUMPV, RJUMPSUB, and RJUMPSUBV) which encode destinations as signed immediate values. These can be useful in almost all JUMP and JUMPI use cases and offer improvements in cost, performance, and static analysis.

Update Log

External Reviews

Outstanding Issues

yyyy-mm-dd: Issue description, link to issue

2 Likes

Note: For lack of EOF, this EIP may well depend on the safe immediate encodings introduced here:

Update EIP-663: Remove EOF requirement, introduce safe immediate encoding

But see also @frangio’s discussion of EVM Immediates

2 Likes