Translation And Preprocessor Flashcards

1
Q

Translation

A

Phase prior to compilation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Translation unit

A

File with applied translation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Preprocessor

A

Seperate program that manipulates the text in each code file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Preprocessor directives

A

Instructions that start with # symbol and end with newline, they tell the preprocessor to perform specific tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Common preprocessor directives

A
  • includes, replaces the directive with its contents
  • macro defines, macro rule how input text is converted to output
  • object-like macros with substitution text, identifier is replaced by substitution text
  • object-like macros without substitution text, replaces it with nothing
  • conditional compilation, conditions for compilations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly