Question 2. Answer the following questions: 2.1: Describe the steps that transfo
ID: 3879625 • Letter: Q
Question
Question 2.
Answer the following questions:
2.1: Describe the steps that transform a program written in a high-level language such as C into a representation that is directly executed by a computer processor. What are the system programs that are needed for this transform? (adapted from Ex1.3 of the textbook).
2.2 (adapted from Ex 1.4 of the textbook) Assume a color display using 8 bits for each of the primary colors (red, green, blue) per pixel and a frame size of 1920 ×1080.
a. What is the minimum size in bytes of the frame buffer to store a frame for this display?
b. How long would it take, at a minimum, for the frame to be sent over an 18 Mbit/s network?
Explanation / Answer
Hi,
Since you have asked two questions, I am gonna answer only one of them (first one). For other question, please ask seperately.
So basically there are 4 steps in the whole process of converting a program written in C language to an executable which is directly executed by the computer processor.
Those 4 steps are :-
1) Preprocessing - It processes include-files (the #include you write on top of your C files), conditional compilation (#ifdef #ifndef & #endif) instructions and macros (#define).
2) Compilation - It takes the output of the preprocessor, and the source code, and generates assembly code.
3) Assembly - It takes the assembly source code and produces an object file
4) Linking - It takes one or more object files or libraries as input and combines them to produce a single (usually executable) file.
So the programs used for these tasks are preprocessor, compiler, assembler and linker.
Hope it helps
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.