~/talk

Generating EVM Bytecode from Yul in the new via IR Pipeline

Talkat Solidity Summit 2022 · on Wednesday, 2022-04-20· [compilers-and-language-design, web3]
links:none on file
slides:none on file

New via‑IR pipeline converts Yul to EVM by building a control‑flow graph, algorithmically assigning full stack layouts per block and operation, then emitting opcodes while maintaining a symbolic stack validation to guarantee correctness. The transform removes many redundant DUP/SWAP sequences, yields a few percent gas reduction and smaller code size, and reduces stack‑too‑deep errors to almost none (exceptions: inline assembly and recursion). It cooperates with the Yul optimizer to spill variables to memory and creates new debugger tooling requirements. CFG→annotated stack layouts→opcodes

AI-written summary · about

  1. 0:00Compiler internals overview
  2. 3:53Goals of code transformation
  3. 5:13Three-step architecture
  4. 6:52Control flow graph generation
  5. 8:46Algorithmic stack layout
  6. 12:28Bytecode generation and safety
  7. 15:25Debugging and tooling
  8. 17:01Results and performance
  9. 18:40Q&A on compiler optimization
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.