0Pricing
Assembly Language & x86 Low-Level Systems Programming · レッスン

アセンブル・リンク・実行ツールチェーン

アセンブリソースファイルがテキストから実行中のプログラムになるまでを追いながら、アセンブラ、リンカー、ローダーがどのように連携してニーモニックを実行可能ファイルへ変換するかを学びます。

「アセンブル・リンク・実行ツールチェーン」はCoddyKit上の無料Assembly Language & x86 Low-Level Systems Programmingレッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはAssembly Language & x86 Low-Level Systems Programming学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Assembly Language & x86 Low-Level Systems Programmingコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

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.

よくある質問

「アセンブル・リンク・実行ツールチェーン」レッスンは無料ですか?

はい。「アセンブル・リンク・実行ツールチェーン」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Assembly Language & x86 Low-Level Systems Programmingコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Assembly Language & x86 Low-Level Systems Programmingコースには全4レッスンが含まれています。

「アセンブル・リンク・実行ツールチェーン」で何を学びますか?

アセンブリソースファイルがテキストから実行中のプログラムになるまでを追いながら、アセンブラ、リンカー、ローダーがどのように連携してニーモニックを実行可能ファイルへ変換するかを学びます。 ブラウザで直接実行するハンズオンコードでAssembly Language & x86 Low-Level Systems Programmingを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Assembly Language & x86 Low-Level Systems Programmingを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのAssembly Language & x86 Low-Level Systems Programmingは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。

「アセンブル・リンク・実行ツールチェーン」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このAssembly Language & x86 Low-Level Systems Programmingレッスンでコードを書いて実行できますか?

はい。すべてのAssembly Language & x86 Low-Level Systems Programmingレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. アセンブリ言語とは
  2. x86アーキテクチャの基礎
  3. 初めてのアセンブリプログラム
  4. アセンブル・リンク・実行ツールチェーン
← Assembly Language & x86 Low-Level Systems Programmingに戻る