- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Names, Scopes and Bindings.ppt
CS415 - Spring 2005 Names, Scopes and Bindings Aaron Bloomfield CS 415 Fall 2005* Binding A binding is an association between two things, such as a name and the thing it represents Example: int x When this statement is compiled, x is bound to a memory space Binding Time The time at which the association between two items is created There are many different binding times that can be implemented: Language design time Language implementation time Program writing time Compile time Link time Load time Run time Binding Times Language design time These are control flow constructs, primitives, and other semantics Think of reserved words: i.e. if, for, else, while, etc. Language implementation time These include I/O couplings System dependent things such as max heap and stack sizes Think of constants: MAX_INT, etc. In Algol, this included the I/O procedure names Binding Times Program writing time When you the programmer choose data structures and names Compile time The compiler maps high level constructs to machine code Think of the assembly for a compiled procedure Link time Separate compilation means not every part of a program has to be compiled at the same time Libraries are linked to your program and bound Binding Times Load time For primitive operating systems Binds physical addresses Most OSes do this during link time with virtual addresses Run time Very broad term covering the span of execution Values to variable bindings occur here Binding Times Very important to design and implementation of programming languages Early bindings = greater efficiency Later bindings = greater flexibility Scope rules The textual region of the program in which a binding is active is its scope Static scoping is more common in modern programming langauges Found in C, C++, Pascal Static scope All scoping can be determined at compile time Most often this is done with a textual top-to-bottom scan Most basic static scope rule: everything has global scope Fortran Implementation Global sco
您可能关注的文档
- 40 GHz MMIC Power Amplifier in InP DHBT Technology.ppt
- 53071 Hydraulics and HydrologyProject #1Pelton Turbine.ppt
- 6.3二叉树的遍历.ppt
- 911 services wireline, wireless and VoIP.ppt
- A 2nd Opinion on CaRFG3T50 & Supply.ppt
- Abnormal Uterine Bleeding.ppt
- ACADEMIA SINICAIBMS.ppt
- AccessPharmacy.ppt
- AccessPharmacy手机版简介.ppt
- Accurate Mass Spectrometry Lab.ppt
- Narkotikaforbrytelser og doping.ppt
- Navigation Set Hierarchy.ppt
- Networking in 5-50 Years – applications and requirements.ppt
- Normal Distributions.PPT
- November 2002.ppt
- NSTEMI罪犯血管的判断及急诊介入治疗策略.ppt
- Nutrients that prevent Cancer.ppt
- Obstructive Sleep Apnea.ppt
- Operations Management using System Dynamics.ppt
- Optical Fiber Communications.ppt
最近下载
- 高校企业产学研合作协议范本.doc VIP
- 2024-2025学年河南省百师联盟高二年级上册10月联考数学试题(含答案).pdf VIP
- 企业与高校产学研合作协议(产学研合作协议范本).docx VIP
- 蟋蟀的住宅-课堂演示课件.ppt VIP
- 《环境化学导论》课件.ppt VIP
- 商务统计学第八章习题chap08-TIF-BSAFC5.pdf
- A级景区安全风险辨识评估标准清单.docx VIP
- 南方GPS静态测量及数据处理(实例).pdf VIP
- 新22J07 室外工程-标准图集.docx VIP
- DB32/T 3545.7-2024血液净化治疗技术管理 第7部分:血液透析用水卫生检测规范.pdf VIP
文档评论(0)