edited by
721 views
1 votes
1 votes

Many compilers are divided into two largely independent parsers: a front- end, responsible for analyzing the source code, and a back -end, responsible for generating the target code. What is the most important motivation for this division into passes?

 

1It aids in portability.

2To facilitate debugging the compiler.

3.To facilitate division of labor when a compiler is build by a large team of programmers.

4.To minimize memory requirements on modern machines.

edited by

1 Answer

Best answer
1 votes
1 votes
The compiler is mainly divided into front and and back end as bydecoupling the front end and back end of the compiler, we need only write one front end  and then one back end for each target architecture. This approach to organizing the compiler cuts down significantly on the amount of work required to target another architecture and it aids in portability.

So option A
selected by

Related questions