retagged by
662 views

1 Answer

Best answer
2 votes
2 votes
I'd go with option C, since that's fundamentally the purpose of using intermediate code (another one is to perform high level optimizations).

For instance, GCC has got two intermediate langauges - "GIMPLE" and "RTL". The front-end translates source into GIMPLE on which high-level optimizations are done, and then lowers to RTL on, which low-level target speciifc optimizations are performed. One can leverage the optimizations in GCC by writing a front-end and a back-end for GCC as opposed to re-writing the "middle-end". In a nutshell by using an IR, writing m front-ends and n back-ends is sufficient as opposed to writing m * n compilers.
selected by

Related questions

0 votes
0 votes
2 answers
1
bts1jimin asked Jan 12, 2019
572 views
Answer is 6,6Can anybody explain how?
1 votes
1 votes
1 answer
2
Markzuck asked Jan 8, 2019
760 views
someone please share detailed rules for this along with solution- would be of great help.and we usually dont take start and end state- arent they extra here? coz count co...