首页 > 学院 > 开发设计 > 正文

编译原理 阅读(3)

2019-11-08 20:00:02
字体:
来源:转载
供稿:网友

1.6 PRogramming Language Basics

讲的如题目描述的一样,然后强调了一些术语,算是普及了一下知识?

1.6.1 The Static/Dynamic Distinction

简单讲了一下 最大的区别就是静态的可以在编译的时候把一切都解决好,比如作用域(scope),然后后面就开始举作用域的例子。 大多都是静态

1.6.2 Environment and States

然后这里没怎么读懂,待返工 核心就是一个图

然后比较了一下names,identifiers,variables的区别(仍然没怎么搞懂)

1.6.3 Static scope and Block structure

讲了一下静态作用域和block结构(就是这个-> {}),然后举了几个例子。

区分了一波procedure,function,methods

1.6.4 Explicit access control

标题是显式访问控制??不知道怎么翻,貌似就讲了个subclass权限的问题(public,private,protected)

1.6.5 Dynamic Scope

终于讲了个动态作用域的例子。 第一个是macro的例子

#define a (x+1)int x=2;void b() {int x=1; cout<<a<<endl;}void c() {x=a; cout<<x<<endl;}void main(){b();c();}

第二个是method的例子

区分了一波declaration和definition

1.6.6 Parameter Passing Mechanisms

讲了参数传递,call by value,call by reference,call by name

1.6.7 Aliasing

如同标题,别名

1.7 Summary

language processor compiler phrase machine and assembly language modeling in compiler design code optimization higher level language compiler and computer architecture software productivity and software security scope environment block parameter passing Aliasing


上一篇:编译原理 阅读(1)

下一篇:CCF 工资计算

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表