- 3
- 0
- 约7.6千字
- 约 13页
- 2018-09-17 发布于湖北
- 举报
【精品】黄帝内经--灵枢经45
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
您可能关注的文档
最近下载
- 2009斯巴鲁森林人维修手册wi 19911c.pdf VIP
- 水煤浆加压气化法生产合成氨及尿素生产线项目可行性研究报告(1).docx VIP
- 数据中心气流组织技术规范(T/2019) 2019 33页.pdf VIP
- 3.1 《百合花》小说情节的梳理及作用(课件)高一语文对接高考之教材中的考点(统编版必修上册).pptx VIP
- 深度解析(2026)《GBT 19294-2003航空摄影技术设计规范》.pptx VIP
- 旅游北京胡同英语作文.docx VIP
- 2025年一例慢性肾衰患者疑难病例讨论(干货分享).pptx
- 2017年刑法新规定224条.doc VIP
- 2024届高考物理三轮冲刺知识清单:高考物理涉及到的实验讲解总结.docx VIP
- 2025年春新统编版道德与法治七年级下册全册教学课件.pptx
原创力文档

文档评论(0)