70 likes | 190 Vues
Explore the processes in an optimizing compiler such as lexical analysis, semantic analysis, intermediate code generation, and more. Learn about source and high-level optimizations to improve code efficiency.
E N D
The structure of an optimizing compiler String of characters Lexical analyzer String of tokens Parser Parse tree Semantic analyzer Parse tree Intermediate-code generator Medium-level intermediate code Optimizer Medium-level intermediate code Code Generator Low-level intermediate code Postpass optimizer Relocatable object module or runable machine code
1C 5C 2C 3C Source and high-level optimizations A B 4C D E
1C 5C 2C 3C High and mid-level optimization A B 4C D E
2C 3C Medium and low-level optimizations A B 1C 5C 4C D E
1C 5C 2C 3C Low-level (machine dependent) optimizations A B 4C D E
1C 5C 2C 3C Link-time optimizations A B 4C D E