编译原理-中间代码优化.docxVIP

  • 224
  • 0
  • 约6.29千字
  • 约 8页
  • 2017-04-04 发布于重庆
  • 举报
编译原理-中间代码优化

编译原理-实验4.中间代码优化实验报告实验目的理解中间代码优化的过程和基本方法,掌握0型四元式、1型四元式和2型四元式的基本块构造。实验要求编制程序,完成局部优化过程中的基本块划分。给定一段代码,判定程序的入口语句,划分基本块,删除无用产生式和冗余节点。补充完整的源程序代码#include list#include string#include vector#include iostream#include stdio.husing namespace std;/********************************************************************//* Deceleration of structures *//********************************************************************/struct Four{string op;// 操作符string arg1;// 第一个操作数string arg2;// 第二个操作数string result;// 结果intstylenum;// 结点类型struct Four *next;// 指向下一条语句的起始位置struct Four

文档评论(0)

1亿VIP精品文档

相关文档