Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Phases of Compilation

10

Flashcards

0/10

Still learning
StarStarStarStar

Intermediate Code Generation

StarStarStarStar

This phase translates parse tree into an intermediate code that is abstract and independent of machine specifics.

StarStarStarStar

Semantic Analysis

StarStarStarStar

This phase checks the parse tree for semantic consistency with the language definitions.

StarStarStarStar

Code Generation

StarStarStarStar

This phase converts the optimized intermediate code into target machine code, specific to the hardware architecture.

StarStarStarStar

Lexical Preprocessing

StarStarStarStar

This optional phase handles tasks before lexical analysis like file inclusion, macro processing, and conditional compilation.

StarStarStarStar

Lexical Analysis

StarStarStarStar

This phase involves scanning the code to identify tokens.

StarStarStarStar

Syntax Analysis

StarStarStarStar

This phase parses tokens into grammatical structures, typically represented as a parse tree.

StarStarStarStar

Symbol Table Management

StarStarStarStar

Throughout various phases, compiler maintains a symbol table which stores information about scope and binding of names.

StarStarStarStar

Code Optimization

StarStarStarStar

This phase attempts to improve the intermediate code so it runs faster and/or takes up less space.

StarStarStarStar

Error Handling

StarStarStarStar

This phase involves reporting syntax, semantic, or other compilation errors back to the developer.

StarStarStarStar

Linking

StarStarStarStar

After code generation, this phase combines all the separately compiled modules of a program into a single, executable file.

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.