Describe The Steps That Transform A Program Written in A High Level Language Such As C Into A Repres
Describe The Steps That Transform A Program Written in A High Level Language Such As C Into A Repres
Answer:
The following image taken from wiki depicts 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
This study source was downloaded by 100000820737951 from CourseHero.com on 02-24-2022 05:48:55 GMT -06:00
https://www.coursehero.com/file/54446643/Describe-the-steps-that-transform-a-program-written-in-a-high-level-language-such-as-C-into-a-repres/
In the next step, source proram ins converted to assembly code. This step is called
compilation. The parsing of the C program is performed in this step. This step
contains the most complex translation step that the program will experiemnt
during its life cycle. The compler also applies code optimizations during this step.
The next step in the compilation chain consists in the translation of the assembly
language to binary code. Though the assembly code is readable by humans, the
binary program can be too. But there are not many who are up to this task these
days.It contains sequences of zeros and ones that the hardware processor
recognizes.
In the next step, the object file or binary program is changed so that the address
of functions defined ina n exernal library is visible. A special software, the linker
can find the address of functions in these libraries, thus fixing the blank addresses
in the object file. Different operating systems use different linkers.
The last step is the responsibility of a program called loader. The loader dumps an
image of the program into memory and runs it
This study source was downloaded by 100000820737951 from CourseHero.com on 02-24-2022 05:48:55 GMT -06:00
https://www.coursehero.com/file/54446643/Describe-the-steps-that-transform-a-program-written-in-a-high-level-language-such-as-C-into-a-repres/
Powered by TCPDF (www.tcpdf.org)