Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. The stages of compilation (9 points). One point for each uppose you are given

ID: 3737155 • Letter: 1

Question

1. The stages of compilation (9 points). One point for each uppose you are given the following command: Linux gc as b ere a includes the line #include "c.N. It will produce an executable file called a.out. Put the labels representing the stages of compilation and intermediary files into their correct location in the below diagram (Type your answer in Blue color in blanks like A, B..I) Not all labels will be used. (When and if the locations of "a" and "b" files are interchangeable, place intermediary "a" files in the top sequence, and intermediary "b" files in the bottom sequence.) stdout compiler pre-processor debugger router b.S a.c a.out a.o assembler a.s linker b.o stdout

Explanation / Answer

Answer)

The below is the response for the stages of compilation of a C program:

A. pre-processor (The first step of compilation is pre-processing)

B. compiler (The second step of compilation is compiling)

C. a.s (output file from compiler of a)

D. assembler (The third step is assembling)

E. b.s (output file from compiler of b)

F. a.o (output file from assembler of a)

G. linker (The fourth step is linking)

H. b.o (output file from assembler of b)

I. a.out (executable file a.out from linker)