Assume that you have a Pep/8 type computer and the following disk files:
- File A: A Pep/8 assembly language assembler written in machine language.
- File B: A C++-to-assembly language compiler written in assembly language
- File C: A C++ program that will read numbers from a data file and print their median
- File D: A data fie for the median program of file C.
To compute the median, you must make the four computer runs described schematically in figure 5.28. Each run involves an input file that will be operated by a program to produce the output file. The output file produced by the one run may be used either as the input file or as the program of a subsequent run. Describe the contents of files E, F, G and H, and label the empty blocks in figure 5.27 with the appropriate letter.
Figure 5.28 input window ,
Run 1 -- A -- E
Run 2 - -- F3
Run 3 -- -- G
Run 4 -- --
I figure:
C++-->>(compiler )-->>assembly language-> ( assembler)--> machine code
I see that pep 8 assembler generates space for variables .
But lets say i Have this file with data: where and how does it fit the flow? Is it translated to machine language at the same time the source c++ is compiled?
How to answer the original question?