어셈블, 링크, 실행 도구 모음
어셈블리 소스 파일이 텍스트에서 실행 중인 프로그램으로 바뀌는 과정을 따라가며, 어셈블러·링커·로더가 협력해 니모닉을 실행 파일로 변환하는 방법을 배웁니다.
어셈블, 링크, 실행 도구 모음은(는) CoddyKit의 무료 Assembly Language & x86 Low-Level Systems Programming 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 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.oObject 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 helloSymbols 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.
./helloThe 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 helloPutting 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.
AI 튜터와 함께 Assembly을(를) 배우세요 — 무료
브라우저에서 실제 코드를 작성하고 실행하며, 24/7 AI 튜터로부터 즉각적인 도움을 받고, 웹이나 앱에서 중단한 부분부터 계속 학습하세요.
- 코스
- 12
- 레슨
- 48
자주 묻는 질문
“어셈블, 링크, 실행 도구 모음” 강의는 무료인가요?
네 — “어셈블, 링크, 실행 도구 모음” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Assembly Language & x86 Low-Level Systems Programming 강의 전체를 잠금 해제할 수 있습니다. Assembly Language & x86 Low-Level Systems Programming 강의에는 총 4개의 강의가 포함되어 있습니다.
“어셈블, 링크, 실행 도구 모음”에서 뭘 배우나요?
어셈블리 소스 파일이 텍스트에서 실행 중인 프로그램으로 바뀌는 과정을 따라가며, 어셈블러·링커·로더가 협력해 니모닉을 실행 파일로 변환하는 방법을 배웁니다. 브라우저에서 직접 실행하는 실습 코드로 Assembly Language & x86 Low-Level Systems Programming을(를) 배우며, 24/7 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 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.
이 강의의 모든 강의
- 어셈블리 언어란 무엇인가요?
- x86 아키텍처 기초
- 첫 어셈블리 프로그램
- 어셈블, 링크, 실행 도구 모음