Computer Science, asked by chidambarammani1967, 8 months ago

The Analysis part of the compiler includes,(select all that apply)


a.

Lexical Analyzer


b.

Semantic Analyzer

c.

Code Optimizer

d.

Syntax Analyzer

e.

Code Generator​

Answers

Answered by Ayush01T
1

Answer:

Known as the front-end of the compiler, the analysis phase of the compiler reads the source program, divides it into core parts and then checks for lexical, grammar and syntax errors.

Explanation:

please do follow me

and like it

Answered by s1491shivashish7285
2

Answer:

Lexical Analyzer - Lexical analysis is the first phase of a compiler. It takes the modified source code from language preprocessors that are written in the form of sentences. The lexical analyzer breaks these syntaxes into a series of tokens, by removing any whitespace or comments in the source code.

Semantic Analyzer - It uses syntax tree and symbol table to check whether the given program is semantically consistent with language definition. It gathers type information and stores it in either syntax tree or symbol table. This type information is subsequently used by compiler during intermediate-code generation.

Code optimization - is any method of code modification to improve code quality and efficiency. A program may be optimized so that it becomes a smaller size, consumes less memory, executes more rapidly, or performs fewer input/output operations.

Syntax Analyzers - A syntax analyzer or parser takes the input from a lexical analyzer in the form of token streams. The parser analyzes the source code (token stream) against the production rules to detect any errors in the code. The output of this phase is a parse tree.

Code Generator​  - In computing, code generation is the process by which a compiler's code generator converts some intermediate representation of source code into a form (example : machine code) that can be readily executed by a machine.

MARK ME AS BRAINLIEST

Similar questions