b) The IBX company has recently acquired a state-of-the-art
language processing system; and its components work
seamlessly to compile source programs into object codes
for the computer to execute. As a compiler designer and
constructor, you are required to show and educate new users
on its use.
(i). Describe, in your own words, the parts/components of
the language processing system that your company has acquired to users to understand, and explain the role(s)
that each component plays in the compilation process. [7 marks]
(ii). Explain how each component accomplishes its role(s)
in the compilation process and the output that it produces
[4 mar
Language Processing System: The language processing system is also called as the process of execution of program. The computer is machine which is the intelligent combination of hardware and software.
The component of language processing system are listed below :
Processor:
It includes all the header files, and also evaluate, It does not matter that either macros are included or not. It takes source code as a input and produces source code as output. The used processor is known as the evaluator, processing is optional.
#include and macros processing is not required.
Compiler: It takes the modified code as the input and it produces target code as a output.
Assembler:
It takes the target code as a input and produces real relocatable code as a output.
Linker:
A linker is a program that takes the collection of objects and combines them into an executable program.
Loader:
It keeps the linked program into the memory.
Executable code:
It is the low level and machine specific code, which machine can easily understand. Once the job of linker and loader is done then object code finally converted it into the executable code.
Comments
Leave a comment