Leaf nodes represent identifiers, names or constants. DAG provides easy transformation on basic blocks. Directed Acyclic Graphĭirected Acyclic Graph (DAG) is a tool that depicts the structure of basic blocks, helps to see the flow of values flowing among the basic blocks, and offers optimization too.
We will now see how the intermediate code is transformed into target object code (assembly code, in this case).
The compiler is a software that converts high-level (Source Code) language to low-level language (Machine code) without changing the meaning of the Source code. This compiler tutorial is designed for both beginners and professionals as well. This compiler tutorial will help the student for their semester as well as for competitive exams. Our compiler design tutorial will provide all the information about compiler from basic to advanced level.