- 7
- 0
- 约7.6千字
- 约 13页
- 2018-09-17 发布于湖北
- 举报
【精品】黄帝内经--灵枢经99
Lec 1-2 Lec 1-2 Lec 1-2 Lec 1-2 Lec 1-2 Lec 1-2 Lec 1-2 Lec 1-2 Lec 1-2 Lec 1-2 Lec 1-2 * CS 201Compiler Construction Lecture 1 Introduction * Instructor Information Rajiv Gupta Office: Engg.II Room 408 E-mail: gupta@cs.ucr.edu Tel: (951) 827-2558 Office Hours: T, Th 1-2 pm TA: Min Feng Office: Engg II Room 463 E-mail: mfeng@cs.ucr.edu Tel: (951) 827-2001 Office Hours: M,W 1:30-2:30pm * Course Requirements Grading: Test 1: 30 points Test 2: 30 points Project: 25 points Homeworks: 15 points * Course Overview Three Address Intermediate Code Arithmetic Operations dst = src1 op src2 where op in {+, -, *, /, %} Relational Operators dst = src1 relop src2 where relop in {,=,!=,==,=,} Logical Operations dst = src lop src2, where lop in {||,} dst = ! src * Three Address Intermediate Code Array Accesses dst = src[index] dst[index] = src Pointers dst = src * dst = src Copy Assignment dst = src * Three Address Intermediate Code Branches unconditional: goto label conditional: if predicate goto label or if src1 relop src2 goto label labels: declared or instruction numbers * Examples * See handouts. * Control Flow Graph (CFG) Intermediate Code can be transformed from linear representation to a directed graph form called Control flow Graph: Nodes – Basic Blocks: Basic block consists of a sequence of intermediate code statements that must be entered at the top and exited at the bottom, i.e. once the block is entered, all intermediate code statements will be executed. Edges: directed edges connect basic blocks according to control flow. CFG representation will be used for program analysis and optimization. CFG Construction Algorithm Identify Leaders: the first instruction in a basic block is a leader. First instruction in the program Target instruction of a conditional or unconditional branch Instruction immediately following a conditional or unconditional branch Construct Basic Blocks: Starting from the leader append subs
您可能关注的文档
- 【最新公文】巡店镇领导班子、党员领导干部作风建设情况民主评议表.doc
- 【最新公文】低温雨雪冰冻灾害农业生产应对技术措施.doc
- 【最新公文】格力净水器小区推广策划方案.doc
- 【最新公文】浙江省村级组织工作规则.doc
- 【最新公文】渔业企业安全生产台帐讲座.doc
- 【最新公文】工程质量管理体系文件.doc
- 【最新精选】2013-2014《农作物》教师教学计划.doc
- 【国内外标准大全】苏JT16-2004(二)_建筑外保温构造图集bbs-025gz-cn.doc.doc
- 【最新修订版】单片机数字频率计设计_本科毕业论文设计40论文41.doc
- 【最新精选】mdgv-3系列给料机说明书.doc
最近下载
- 05YJ11-2 住宅卫生间-常用建筑图集.docx VIP
- CECS19-1990 混凝土排水管道工程闭气检验标准.docx VIP
- 高频量化笔试题及答案.docx VIP
- DB23_T 3970-2025 寒区聚氨酯水泥预应力钢丝绳抗弯加固桥梁技术规程.pdf VIP
- 2024年6月全国大学英语CET四级真题和答案解析(全三套).pdf VIP
- 联想移动固态硬盘及U盘产品标准保修承诺.pdf VIP
- 机关业务知识考试科技含答案 .pdf VIP
- 2023年甘肃省定西市八年级学业水平考试——地理、生物学合卷 .docx VIP
- 机关业务知识试卷及答案.doc VIP
- 放射科温湿度记录表供参考.doc VIP
原创力文档

文档评论(0)