Question: The GNU compiler kit uses a machine - independent register transfer language, RTL , as an intermediate language. The kit includes translators from several high
The GNU compiler kit uses a machineindependent register transfer language, RTL as an intermediate language. The kit includes translators from several highlevel languages such as C C Pascal into RTL and translators from RTL into several machine codes such as Alpha, PPC and SPARC It also includes an RTL optimiser ie a program that translates RTL into more efficient RTL All of these translators are expressed in C
a Show how you would install these translators on a SPARC machine, given a C compiler for the SPARC.
Now show how you would use these translators to:
b Compile a program P expressed in Pascal, into SPARC machine code;
c Compile the same program, but using the RTL optimiser to generate more efficient object code;
d Crosscompile a program Q expressed in C into PP machine code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
