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
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.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development