A compiler translates (or compiles) a programme written in a high-level programming language that is suitable for human programmers into the low-level machine
language that is required by computers. During this process, the compiler will also
attempt to spot and report obvious programmer mistakes.
A program for a computer must be built by combining these very simple commands
into a program in what is called machine language.
The phases of a compiler
Lexical Analysis
Syntax Analysis
Type checking
Intermediate code generation
Register allocation
Machine code generation
Assembly and linking
0 comments:
Post a Comment