Explain about complier design(phases)



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

Post New Answer

More Core Java Interview Questions

Are arrays passed by reference in java?

1 Answers  


Which package is imported by default?

1 Answers  


Difference between linkedlist and arraylist.

1 Answers  


Can we cast any other type to boolean type with type casting?

1 Answers  


types of applets?.

7 Answers   TCS,


Why stringbuilder is not thread safe?

1 Answers  


What’s meant by anonymous class?

1 Answers  


What is public static void main?

1 Answers  


why marker interfaces are there in java

4 Answers   Digital Group,


What is abstraction with strong example program? (not a general program)

3 Answers  


What is an abstract class and abstract method?

5 Answers  


How many functional interfaces does java 8 have?

1 Answers  


Categories