in Compiler Design retagged by
529 views
0 votes
0 votes
One of the purposes of using intermediate code in compilers is to increase the chances of reusing the machine-independent code optimizer in other compilers.

eleborate this ??
in Compiler Design retagged by
529 views

1 comment

edited by

After intermediate code generation, we need to generate machine code for perticular machine based architecture. It would be unnecessary to compute every time machine code for different machine architecture, and then distribute it so instead distribute them intermediate code and let the common entity handle intermediate to machine code generation part. Here it becomes easy for a given machine to optimize code optimization process for its own architecture.

https://gateoverflow.in/410/gate2008-12

1
1

1 Answer

1 vote
1 vote
Best answer

Compiler construction can be broadly classified into two phases - front end and back end.

From NPTEL:



Link: https://nptel.ac.in/courses/106108113/module5/Lecture17.pdf

selected by
by

1 comment

thanks
0
0