2,218 views
0 votes
0 votes

The issues in the design of Code generation are ________

The issues in the design of code generation are due the what reason ?

The compiler converts the source code by accepting HLL into target code or machine code which is platform dependent right ?

The compiler makes the Dynamic Acyclic graph of the various instructions . These dynamic acyclic graphs which are obtianed are they platform independent or platform independent??

1 Answer

0 votes
0 votes

DAG is an intermediate code representation which is generated by ICG module of compiler which comes under the front end/Machine independent phase of compiler.

Yes the output of compiler to be more specific output of target code generator is machine dependent and is called assembly language.

The assembler takes assembly language and converts it into relocatable machine code not the compiler.

EDIT:

Machine independent modules:

lexical,syntax,semantic analyser; ICG

Machine dependent modules:

Code optimiser,target code generator .

Hope it Helps!

edited by

Related questions

2 votes
2 votes
1 answer
1
monanshi asked Dec 10, 2015
1,855 views
During code generation, we need to do register allocation (kind of machine dependent stuff). So, I think it must be the part of Synthesis phase?
0 votes
0 votes
0 answers
2
aditi19 asked Apr 1, 2019
969 views
Generate code for the following three-address statements assuming stack allocation where register SP points to the top of the stackx = 1x=ax = a + 1x = a+bThe two stateme...
2 votes
2 votes
1 answer
4
dragonball asked Jan 14, 2018
1,470 views