Ethereum Protocol Fellowship (EPF) Cohort 7 — Applications open until May 13
All EIPs
EIP-8024 Review EL

Backward compatible SWAPN, DUPN, EXCHANGE

Authors: , , ,

Canonical data: /latest/eips/8024.json

Introduce additional instructions for manipulating the stack which allow accessing the stack at higher depths

Timeline

Glamsterdam
Francisco Giordano
Scheduled for Inclusion
May 7, 2026 · ACDE #236
Considered for Inclusion
Dec 4, 2025 · ACDE #225
Proposed
EIP Created Aug 16, 2025

Key Benefits

  • Compilers can generate code more easily without the complexity of spilling.
  • New EXCHANGE instruction can replace three instructions with a single one.
  • Smart contracts are freer to make heavier use of the stack instead of resorting to memory.

Trade-offs & Considerations

No trade-offs documented yet.

Stakeholder Impact

End Users

Cheaper transactions from more efficient bytecode.

Application Developers

Once Solidity adopts it, no more workarounds will be necessary for "stack too deep" errors.

Wallet Developers

No impact.

Tooling / Infrastructure

Must implement support for new instructions.

Layer 2s

Can adopt new instructions.

Stakers & Node Operators

No impact.

CL Client Developers

No impact.

EL Client Developers

Must implement new instructions.

North Star Goal Alignment

  • Improve UX: Enables Solidity to easily solve the "stack too deep" error that frequently prevents smart contract developers from working effectively.