Program Execution Objectives
Each student will be able to:
- Considering the process of preparing a C program for execution,
describe the function of each of the following pieces of
software plays in that process. Limit your description of
each to 20 words or less.
- linker
- assembler
- compiler
- loader
- macro preprocessor
- Within the context of the process of preparing a
C program for execution,
draw a block diagram showing the program flow, in order,
for each of the following stages of that process. For each block,
show the form of the program entering that block, and
the form of the program leaving that block.
- linker
- assembler
- compiler
- loader
- macro preprocessor
- Draw, and label a diagram that indicates the logical division
of memory among program code, stack, and heap.
- Describe how, during program execution,
the function of the stack and the heap differ.
- Given a short C program, consisting only of the function main,
indicate which variables will reside in the runtime stack during
execution and which will be stored in the heap.
- Explain, in 20 words or less, why a runtime stack is needed to
support execution of a C program.