5,149 views

2 Answers

3 votes
3 votes

Lexical

Syntax

Semantic

Intermediate

Above phases of compiler is known as frontend and these are common for any platform.

Code generation is known as backend and it is machine dependent phase.

0 votes
0 votes
Intermediate Code Generation is machine independent. Whereas, Target Code Generation or simply Code Generation is machine dependent because it has to finally convert the pure High Level Language compiler received initially to assembly code for an Assembler to process. Since Assemblers themselves are machine/platform dependent, Code Generation, whose output is input to Assemblers, is also machine dependent.

Related questions

0 votes
0 votes
1 answer
2
Amit Sharma asked Jun 7, 2016
1,582 views
What exactly a translation Process is ? in compiler Design .Can someone explain Briefly .
0 votes
0 votes
1 answer
3
NehaDutonde asked Mar 21, 2016
557 views
2 votes
2 votes
1 answer
4
rishu_darkshadow asked Sep 23, 2017
1,926 views
A compiler that runs on one machine and produces code for a different machine is called :Cross compilation One pass compilation Two pass compilation N...