Builds Flashcards
What is program building?
The creation of an executable from one or more source files
What is a program executable?
A file that contains machine code instructions (instructions are OS and CPU dependant)
What are the two steps required for transforming C code into an executable?
Compilation and linking
What does preprocessing do?
It interprets all the preprocessing directives of one source file
What do preprocessing directives begin with?
#
What are the input and output of preprocessing?
Input: source code from one source file
Output: New source code with substitutions incorporated
What is a header file?
File containing information needed by multiple source files, such as data type definitions and function prototypes. It never contains function implementations or any statements.
Use ______ to include a header file from a library
angle brackets
Use ______ to include a header file from the current directory
double quotes
What does compiling do?
Translates source code into assembly code while performing optimizations
Compiler input:
Source code from one source file
Compiler output:
The corresponding assembly code
What does assembling do?
It translates assembly code into object code
Assembler input:
Assembly code from one source file
Assembler output:
Corresponding object code