DEV Community

Arul .A
Arul .A

Posted on

What is Compiler?

  • A computer is used to converts source code into machine code(0s and 1s ) and that the computer can understand and execute.

Process:

1.Lexical Analysis : Breaks code into small tokens

2.Syntax Analysis : Check if the code follows the rules

3.Sematic Analysis : Ensure the meaning is correct(variable used properly)

4.Optimization : Improve code efficiency and performance

5.Code Conversion : machine language to Assembly language

6.Code Linking : Combines all files library/files into a final executable program.

Java - JAVAC
C,C++ - GCC (GNC collection compiler)

Top comments (0)