Machine-translated by Google. Questions are authored in English.
Top

Discussion

Arrange these components of a language processing system in the order a source file passes through them.
1. assembler
2. preprocessor
3. linker
4. compiler

  • A.2 - 4 - 1 - 3
  • B.3 - 1 - 4 - 2
  • C.4 - 2 - 1 - 3
  • D.2 - 1 - 4 - 3

Answer: A

Correct answer: 2 - 4 - 1 - 3

The source passes through the preprocessor first, which expands macros and includes files to produce a modified source program.

The compiler translates that into assembly, the assembler turns the assembly into relocatable machine code, and the linker combines the object modules with libraries into an executable. Each stage's output is the next stage's input, and the loader - which places the executable in memory - comes after all four, at run time rather than build time.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.