EVM Execution
- Stack machine. The EVM is a stack machine: opcodes pushing, popping and jumping, gas per step.
- Opcodes. Reading opcodes demystifies costs: SLOAD, SSTORE, CALL: the words under every statement.
- Bytecode and metadata. Deployed bytecode includes constructor-stripped runtime code: what the chain truly holds.
Yul and Assembly Awareness
- Yul. Yul is the EVM’s readable assembly: inline blocks reaching below Solidity’s guardrails.
- Why assembly appears. Libraries drop to assembly for gas and missing features: every block a fenced, commented risk.
- Reading before writing. Auditors read assembly long before writing it: recognising the standard snippets is the skill.
When Low-Level Code Is Appropriate
- Justified only. Assembly is justified by measurement and reviewed by more eyes: never by style.
- Safety notes. Every assembly block documents its invariants: what Solidity would have checked, proven by hand.
- Prefer the compiler. Modern Solidity closes most gaps: the compiler’s code beats yours until proven otherwise.
Before and after this level
- Before: Level 14: DeFi Contract Patterns: Pools and Exchanges, Lending and Vault Concepts, Composable Smart Contracts.
- Next: Level 16: Deployment & Verification: Networks and Deployment, Contract Verification, Production Contract Operations.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Solidity Level 15: Low-Level Solidity cover?
EVM Execution, Yul and Assembly Awareness, When Low-Level Code Is Appropriate: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 14: DeFi Contract Patterns, which covers Pools and Exchanges, Lending and Vault Concepts, Composable Smart Contracts.