Explain about complier design(phases)
Answer / Kirti Sagar
Compiler Design consists of several phases that convert high-level source code into low-level object code that can be executed by a computer. The main phases are: n 1. Lexical Analysis:n It involves breaking down the source code into tokens or lexemes.n 2. Syntax Analysis:n It involves checking the syntax of the program to ensure it follows the rules of the programming language.n 3. Semantic Analysis:n It involves analyzing the meaning of the program and checking for errors such as type mismatches and variable declarations.n 4. Optimization:n It involves optimizing the generated code to make it more efficient and smaller in size.n 5. Code Generation:n It involves generating the actual machine code from the optimized source code.
| Is This Answer Correct ? | 0 Yes | 0 No |
Are arrays passed by reference in java?
Which package is imported by default?
Difference between linkedlist and arraylist.
Can we cast any other type to boolean type with type casting?
types of applets?.
Why stringbuilder is not thread safe?
What’s meant by anonymous class?
What is public static void main?
why marker interfaces are there in java
What is abstraction with strong example program? (not a general program)
What is an abstract class and abstract method?
How many functional interfaces does java 8 have?