C

Compilation stages

Në shqip: Fazat e kompajlimit

ShpjegimiSQ

Nga kodi C te programi kalon katër faza: paraprocesori (zbaton #include dhe #define), kompajleri (C → assembly), assembler-i (assembly → kod makine, skedar .o), dhe linker-i (i bashkon të gjitha në një program).

EnglishEN

From C code to a program there are four stages: the preprocessor (handles #include and #define), the compiler (C → assembly), the assembler (assembly → machine code, an .o file), and the linker (joins everything into one program).

Si ta mendosh

Si buka: përgatit përbërësit, gatuan brumin, e pjek, dhe në fund e paketon për t'u shitur.

Lexoje në anglisht

Like bread: prepare the ingredients, make the dough, bake it, and finally package it for sale.

Shembull kodibash

gcc -E main.c -o main.i   # paraprocesori
gcc -S main.i -o main.s   # assembly
gcc -c main.s -o main.o   # kod makine
gcc main.o -o programi    # linker

Terma të lidhur