- 1
- 0
- 约8.18千字
- 约 54页
- 2018-11-06 发布于广西
- 举报
Chapter 7 Runtime Environments Zhai Yuqing Zhou Xiaoyu Program vs Program Execution An execution of a program is called as a process. A program consists of several procedures (functions). An execution of a program would cause the activation of the related procedures. Allocation and De-allocation of Data Objects A name (e.g, a variable name) in a procedure would be related to different data objects. An activation may manipulate data objects allocated for its use. Bindings of Names When an environment associates storage location s with a name x, we say that x is bound to s; the association itself is referred to as a binding of x. A binding is the dynamic counterpart of a declaration. Data Object Even each name is declared once in a program, the same name may denote different objects at run time. The “ data object” corresponds to a storage location that can hold values. Environment and State In programming language semantics, the term “environment” refers to a function that maps a name to a storage location, and term “state” refers to a function that maps a storage location to the value held there. Environment and State environment state name storage value Environment and State An assignment changes the state, but not the environment. Allocation and De-allocation of Data Objects Managed by the run-time support package. The representation of a data object at run time is determined by its type. If x is not of a basic type, the storage s for x may be a collection of memory words. Factors that Determines the Run Time Environment of a Program Recursive call of procedures. Local name storage space allocation strategy. global name storage space allocation strategy. Parameter passing mechanism. Factors that Determines the Run Time Environment of a Program whether a function is allowed to be a parameter of or return value of a function. Subdivision of Runtime Memory Typical subdivision of runtime memory into code an
您可能关注的文档
- 电子科大《数字信号处理(DSP)》第1章 数字信号处理概述(精品·公开课件).ppt
- 电子科技大学离散数学课程组国家精品课程(精品·公开课件).ppt
- 电子技术基础与技能 (1)(精品·公开课件).ppt
- 电子科技大学网络编程课件第十讲——服务器并发性的统(精品·公开课件).ppt
- 电子科技大学网络编程课件第五讲——客户软件设计中的(精品·公开课件).ppt
- 电子科技对我们日常生活的影响(精品·公开课件).ppt
- 电子科大电子技术应用实验总复习(精品·公开课件).ppt
- 电子垃圾(精品·公开课件).ppt
- 电子课件第五章演示文稿处理软件PowerPoint2003(精品·公开课件).ppt
- 电子类课程(精品·公开课件).ppt
- 伟明环保-市场前景及投资研究报告-境内业务稳健运行,印尼市场贡献边际增量.pdf
- 桂东县法院系统招聘考试真题2025.pdf
- 贵州省黔南布依族2026年中考三模物理试题及答案.pdf
- 贵州省黔南州2026年中考语文二模试卷附答案.pdf
- 贵州省铜仁市2026年中考语文二模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套完整答案详解.docx
- 贵州省毕节市2026年中考语文一模试卷附答案.pdf
- 贵州省贵阳市南明区2026年中考语文一模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套参考答案详解.docx
- 贵州省贵阳市白云区2026年中考二模物理试题附答案.pdf
原创力文档

文档评论(0)