0Pricing
Assembly Language & x86 Low-Level Systems Programming · Aula

A cadeia de ferramentas de montagem, vinculação e execução

Acompanhe um arquivo-fonte em Assembly, do texto a um programa em execução: veja como o montador, o vinculador e o carregador cooperam para transformar mnemônicos em um executável.

A cadeia de ferramentas de montagem, vinculação e execução é uma aula grátis de Assembly Language & x86 Low-Level Systems Programming no CoddyKit. Esta é a aula 4 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 Assembly Language & x86 Low-Level Systems Programming, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Assembly Language & x86 Low-Level Systems Programming inclui 4 aulas no total.

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

From Mnemonics to Machine Code

You write assembly in mnemonics like MOV and ADD, but the CPU only speaks binary machine code. The toolchain bridges that gap.

Step 1: The Assembler

Step 1: the assembler translates each mnemonic into its machine-instruction bytes, producing an object file (.o or .obj).

nasm -f elf64 hello.asm -o hello.o

Object Files

An object file holds machine code plus metadata — symbols, sections, relocations. It isn't runnable yet because addresses aren't final.

Sections

Code and data live in named sections: .text for instructions, .data for initialized data, .bss for uninitialized data.

Step 2: The Linker

Step 2: the linker combines object files, resolves the symbol references between them, and assigns final addresses to build the executable.

ld hello.o -o hello

Symbols and Relocation

When code calls a label defined elsewhere, the assembler leaves a placeholder. The linker fills in the real address during relocation.

Step 3: The Loader

Step 3: when you run it, the OS loader maps the sections into memory, sets up the stack, and jumps to the entry point.

./hello

The Entry Point

Execution begins at a start symbol — typically _start for raw Linux assembly, or main when you link with the C runtime.

global _start
_start:

Static vs Dynamic Linking

Static linking copies library code into the binary; dynamic linking loads shared libraries at run time, keeping the executable smaller.

Inspecting the Output

Inspect each stage: objdump disassembles, readelf shows headers and sections, and nm lists the symbols.

objdump -d hello

Putting It Together

The full flow: assembler turns .asm into objects, the linker joins objects into an executable, and the loader runs it as a process.

Quick Check

Test your understanding of the toolchain.

Recap

You learned the toolchain: assembler makes objects, the linker resolves symbols into an executable, and the loader turns it into a running process.

Perguntas Frequentes

A aula “A cadeia de ferramentas de montagem, vinculação e execução” é grátis?

Sim — o texto completo de “A cadeia de ferramentas de montagem, vinculação e execução” é 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 Assembly Language & x86 Low-Level Systems Programming, atualize para CoddyKit PRO. O curso de Assembly Language & x86 Low-Level Systems Programming inclui 4 aulas no total.

O que vou aprender em “A cadeia de ferramentas de montagem, vinculação e execução”?

Acompanhe um arquivo-fonte em Assembly, do texto a um programa em execução: veja como o montador, o vinculador e o carregador cooperam para transformar mnemônicos em um executável. Você pratica Assembly Language & x86 Low-Level Systems Programming 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 Assembly Language & x86 Low-Level Systems Programming?

Nenhuma experiência prévia é necessária. Assembly Language & x86 Low-Level Systems Programming 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 4 de 4.

Quanto tempo leva a aula “A cadeia de ferramentas de montagem, vinculação e execução”?

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 Assembly Language & x86 Low-Level Systems Programming?

Sim. Cada aula de Assembly Language & x86 Low-Level Systems Programming 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. O que é linguagem Assembly?
  2. Fundamentos da arquitetura x86
  3. Seu primeiro programa Assembly
  4. A cadeia de ferramentas de montagem, vinculação e execução
← Voltar para Assembly Language & x86 Low-Level Systems Programming