Introduction to Compiling Smart Contracts
How Solidity source becomes deployable bytecode: the solc compiler and the tools that run it, the ABI and bytecode outputs, compiler versions, optimizer and EVM target settings, and how the ABI encodes function calls, events and errors.
- 3 lessons
- Module quiz
Compilation turns Solidity into the artifacts that deployment and every application depend on. This module explains the compiler and its outputs, how compiler versions and settings change the result, and how the ABI encodes calls, events and errors.
What the exam expects
Expect questions on what the ABI and bytecode are used for, creation versus runtime bytecode, the optimizer's runs setting, EVM versions, and how function selectors are calculated.
How this module is organized
The Solidity Compiler, ABI and Bytecode covers solc, Remix and Hardhat compilation and their outputs. Compiler Versions and Settings covers pinning versions, the optimizer and EVM targets. ABI Encoding and Function Selectors covers how calls and logs are encoded.