Decaf Compiler
Functions
p4-codegen.h File Reference

Interface for Project 4 (Code Generation) More...

#include "common.h"
#include "ast.h"
#include "visitor.h"
#include "symbol.h"
#include "iloc.h"

Go to the source code of this file.

Functions

InsnListgenerate_code (ASTNode *tree)
 Convert an AST into linear ILOC code. More...
 

Detailed Description

Interface for Project 4 (Code Generation)

Function Documentation

◆ generate_code()

InsnList* generate_code ( ASTNode tree)

Convert an AST into linear ILOC code.

Parameters
treeRoot of AST
Returns
List of ILOC instructions