Four steps:
- preprocessing: based on the
#
directives, modify the original C program. Usually, the result of this step is a.i
file; - compile: translate
.i
file into.s
file. Assembler provides different language and different platform with a common output; - assembling: assembles the program into machine command. The output file will be a
.o
file, which is a binary file; - link