0Pricing
Assembly Language & x86 Low-Level Systems Programming · درس

سلسلة أدوات التجميع والربط والتشغيل

تتبّع ملف مصدر التجميع من النص إلى برنامج قيد التشغيل، وتعرّف إلى كيفية تعاون المجمّع والرابط والمحمّل لتحويل التعليمات الرمزية إلى ملف تنفيذي.

سلسلة أدوات التجميع والربط والتشغيل درس مجاني في Assembly Language & x86 Low-Level Systems Programming على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في 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/7) وفتح باقي دورة 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/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ Assembly Language & x86 Low-Level Systems Programming؟

لا تُشترط خبرة سابقة. Assembly Language & x86 Low-Level Systems Programming على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.

كم من الوقت يستغرق درس «سلسلة أدوات التجميع والربط والتشغيل»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس Assembly Language & x86 Low-Level Systems Programming هذا؟

نعم. كل درس في Assembly Language & x86 Low-Level Systems Programming يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. ما هي لغة التجميع؟
  2. أساسيات بنية x86
  3. أول برنامج لكم بلغة التجميع
  4. سلسلة أدوات التجميع والربط والتشغيل
← العودة إلى Assembly Language & x86 Low-Level Systems Programming