0Pricing
Web3 & DApp Development Fundamentals · Aula

A Máquina Virtual do Ethereum

Execução de bytecode

A Máquina Virtual do Ethereum é uma aula grátis de Web3 & DApp Development Fundamentals no CoddyKit. Esta é a aula 1 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Web3 & DApp Development Fundamentals, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Web3 & DApp Development Fundamentals inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em inglês.

What Is the EVM?

The Ethereum Virtual Machine (EVM) is the runtime that executes smart contract code on every Ethereum node.

It is a sandboxed, deterministic computer shared by the whole network.

A Global Computer

The EVM is often called a world computer. Every full node runs the same EVM and processes the same transactions, arriving at the same result.

This shared execution is what gives Ethereum a single, agreed-upon state.

Stack-Based Machine

The EVM is a stack machine: operations push and pop values from a stack rather than using named registers.

For example, addition pops two values and pushes their sum.

PUSH1 0x05   // stack: [5]
PUSH1 0x03   // stack: [5, 3]
ADD          // stack: [8]

Bytecode

Smart contracts are deployed as bytecode — a compact sequence of bytes the EVM understands. Solidity source is compiled down to this bytecode.

The EVM never sees your high-level Solidity; it only runs bytecode.

Solidity source
   | (compiler: solc)
   v
EVM bytecode (0x6080604052...)
   | (deployed)
   v
EVM executes it

Opcodes

Bytecode is made of opcodes — single-byte instructions like ADD, MUL, SLOAD, and JUMP.

Each opcode performs one low-level operation and has a fixed gas cost. We explore opcodes in a later lesson.

Deterministic Execution

The EVM is fully deterministic: the same inputs always produce the same outputs on every node.

This is essential — if nodes disagreed on results, the network could never reach consensus on the state.

256-bit Word Size

The EVM operates on 256-bit words (32 bytes). This large size suits cryptographic operations like hashing and elliptic-curve math.

It is unusual compared to the 32- or 64-bit words of ordinary CPUs.

Gas Metering

The EVM meters gas as it runs. Each opcode deducts its gas cost, and execution halts if gas runs out.

This guarantees termination and prevents any contract from running forever.

The Sandbox

EVM execution is sandboxed: contract code cannot access the network, filesystem, or other processes.

It can only read and write blockchain state. This isolation keeps execution predictable and secure.

EVM-Compatible Chains

Many other blockchains run the EVM or a clone of it — Polygon, BNB Chain, Avalanche C-Chain, and Arbitrum among them.

This EVM compatibility lets developers deploy the same contracts across many chains.

Putting It Together

The EVM is a deterministic, sandboxed, stack-based virtual machine that executes contract bytecode on every node, metering gas and operating on 256-bit words.

Its determinism is the foundation of network consensus.

Quick Check

Test your EVM knowledge.

Recap: The EVM

You learned that:

  • The EVM runs smart contract bytecode on every node
  • It is a stack-based, deterministic, sandboxed machine
  • Solidity compiles to bytecode made of opcodes
  • It uses 256-bit words and meters gas

Next: EVM data locations.

Perguntas Frequentes

A aula “A Máquina Virtual do Ethereum” é grátis?

Sim — o texto completo de “A Máquina Virtual do Ethereum” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Web3 & DApp Development Fundamentals, atualize para CoddyKit PRO. O curso de Web3 & DApp Development Fundamentals inclui 4 aulas no total.

O que vou aprender em “A Máquina Virtual do Ethereum”?

Execução de bytecode Você pratica Web3 & DApp Development Fundamentals com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar Web3 & DApp Development Fundamentals?

Nenhuma experiência prévia é necessária. Web3 & DApp Development Fundamentals no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 1 de 4.

Quanto tempo leva a aula “A Máquina Virtual do Ethereum”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de Web3 & DApp Development Fundamentals?

Sim. Cada aula de Web3 & DApp Development Fundamentals inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. A Máquina Virtual do Ethereum
  2. Armazenamento, memória e pilha
  3. OpCodes
  4. Contas e estado
← Voltar para Web3 & DApp Development Fundamentals