Compilers (Dragon Book 2nd) - 8.2
来源:互联网 发布:西北师大知行学院评价 编辑:程序博客网 时间:2024/05/22 13:42
--- # 8.2.1
- a) x = 1:
LD R1, #1 // R1 = 1 STx, R1// x = R1
- b) x = a:
LD R1, a // R1 = a STx, R1// x = R1
- c) x = a + 1
LD R1, a // R1 = a ADDR1, R1, #1// R1 += 1 STx, R1// x = R1
- d) x = a + b
LD R1, a // R1 = a LD R2, b // R2 = b ADD R1, R1, R2 STx, R1
- e) x = b*c; y = a + x
LD R1, b // R1 = b LD R2, c // R2 = c MULR1, R1, R2 LDR2, a STx, R1 ADDR1, R1, R2 STy, R1
- y = *q; q = q+4; *p = y; p = p + 4;
LD R1, q LD R2, 0(R1) STy, R2// y = *q; ADDR1, R1, #4 STq, R1// q = q+4 LDR1, p ST0(R1), R2 //*p = y ADDR1, R1, 4 STp, R1//p = p + 4
--- # 8.2.5
- s = 0
i = 0
L1: if i > n goto L2
s = s + i
i = i + 1
goto L1
L2:
LD R1, 0STs, R1ST i,R1 LD R2, nL1SUB R3, R2, R1//n-iBLTZ R3, L2//if n-i < 0 goto L2LDR3, sADDR3, R3, R1STs, R3ADDR1, R1, #1STi, R1L2
- Compilers (Dragon Book 2nd) - 8.2
- Compilers(Dragon Book 2nd) - 4.9
- Compilers(Dragon Book 2nd) - 5.3
- Compilers(Dragon Book 2nd) - 5.4
- Compilers (Dragon Book 2nd) - 6.3
- 编译原理->nice time to spend(Compilers: Principles, Techniques, and Tools (2nd Edition))
- 《OpenGL.Shading.Language.2nd.Edition.(Orange.Book).2006 》下载
- Thinking in C++, 2nd Edition - Book Download Sites
- Dragon Book reading notes 1
- compilers
- The Windows 2000 Device Driver Book: A Guide for Programmers (2nd Edition)
- The Book of JavaScript, 2nd Edition: A Practical Guide to Interactive Web Pages
- The Windows 2000 Device Driver Book: A Guide for Programmers (2nd Edition)
- book 2
- 2nd Day
- 2nd Night
- Code Complete 2nd
- 2nd post
- http请求头状态码
- 数据库连接检查以及在c++中捕获mysql报出的错误
- DDL DCL DML
- (一)Hibernate之基础
- ORA-01194: file 1 needs more recovery to be consistent
- Compilers (Dragon Book 2nd) - 8.2
- 用C#实现的条形码和二维码编码解码器
- 什么是数据驱动编程
- InstallShield 制作静默安装包
- 解决建立低版本ios sdk报异常Unsupported compiler 'GCC 4.2'
- Android模拟翻书效果
- OpenCV中关于感兴趣的区域ROI
- Android布局查看工具
- 为什么我的网站会经常出问题?服务器错误