1/23
Looks like no tags are added yet.
Compiler
A piece of system software that translates code written in a high-level programming language into equivalent low-level machine-oriented target language.
Compilation
The process of translating high-level source instructions into machine language instructions that can be executed on physical hardware.
Lexical Analyzer
A component of a compiler that scans the source program character-by-character to group characters into tokens.
Syntax Analysis
The phase of a compiler that takes tokens from the lexical analyzer and groups them into a parse tree based on grammar rules.
Semantic Analysis
The phase of compilation that checks for semantic consistency, verifying that operators are applied to compatible data types using the symbol table.
Intermediate Code Generation (ICG)
The phase that converts a verified parse tree into a machine-independent representation.
Optimization
The restructuring of computational steps to improve performance and reduce memory usage without altering program behavior.
Preprocessor (CPP)
A tool that processes directives starting with # before the compilation of the program begins.
Symbol Table
A centralized data structure maintaining attributes of identifiers across compilation stages.
Error Handling
The process by which a compiler emits descriptive error messages and recovers state when errors occur during compilation.
Conditional Compilation
A feature that enables code to be compiled only if certain conditions are met, often controlled by preprocessor directives.
GCC
GNU Compiler Collection; a set of compilers for various programming languages, with a command-line interface for compiling and linking code.
Deterministic Finite Automata (DFA)
A theoretical machine model that accepts a string of characters and transitions deterministically through a series of states.
Ambiguous Grammar
A grammar that can produce more than one valid parse tree for the same input string, which is undesirable in compiler design.
Loop Unrolling
An optimization technique that replicates loop bodies to reduce the overhead of loop control variables.
Type Checking
The process of verifying that each operator in a program is applied to compatible data types.
Macro
A preprocessor definition that performs text substitution, allowing parameterized replacements in code.
Linker
A tool that combines object files and external libraries to create an executable program.
Relocatable Object Code
Machine code produced by an assembler that contains information for linking but is not yet executable.
Executable
The final output of the compilation process, typically in binary format, that can be run on a computer.
Three-Address Code (3AC)
An intermediate representation style in compilers where each instruction has at most three addresses or operands, aiding in optimization.
Function Inlining
An optimization technique that replaces a function call with the function body's code to avoid the overhead associated with the call.
Debugging Symbols
Information included in a program to assist debugging, such as variable names and line numbers, typically when compiled with a specific flag.
Precedence
The rules defining the order in which operations are performed in an expression, crucial in macro expansions to avoid incorrect evaluations.