in Compiler Design edited by
475 views
1 vote
1 vote

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.

in Compiler Design edited by
475 views

3 Comments

I think 1 fits much better followed by 4
0
0
Explain it plz
0
0

I just compared C compiling method and Java compiling method. Java is more used because of Write once run anywhere feature of it, that is because of Portability.

correct me if I'm wrong

0
0

1 Answer

1 vote
1 vote
Best answer
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

1 comment

Thnxx Anjali
0
0