首页 | 本学科首页   官方微博 | 高级检索  
     

分块编译在PASCAL中的实现
引用本文:张幸儿. 分块编译在PASCAL中的实现[J]. 南京大学学报(自然科学版), 1988, 0(4)
作者姓名:张幸儿
作者单位:南京大学计算机科学系
摘    要:本文提出一种对 PASCAL 语言实现分块编译的方法,并讨论了有关问题。要点是首先把过程说明和函数说明处理作编译单位。然后压缩去源程序中无需语法检查的编译单位,从而对压缩过的源程序进行编译。这样,用户能把注意力集中于正待语法检查的少数编译单位,并节省计算机机时。这种分块编译思想适用于基于分程序结构的其它非模块化程序设计语言。这种方法的特点在于:它支持模块程序设计策略,也支持逐步精化设计策略,可以作为软件研制的手段而应用。

关 键 词:分块编译  编译单位  语法正确性  模块程序设计策略  逐步精化

ON THE IMPLEMENTATION OF SEPARATE COMPILATION FOR PASCAL
Zhang Xing-er. ON THE IMPLEMENTATION OF SEPARATE COMPILATION FOR PASCAL[J]. Journal of Nanjing University: Nat Sci Ed, 1988, 0(4)
Authors:Zhang Xing-er
Affiliation:Deptoferment of Computer Science
Abstract:This paper presents a method of implementing separate compilation for PASGAL and discusses the related issues.The point is as follows:First,pro- ceduro declarations and function declarations are treated as compilation units. Then the compilation units which need not to be chocked are pruned away so that the pruned source program is compiled.As a result,the user will be able to concentrate his attention on a few compilation units which are to be chec- ked.Thus,the computer time is much saved. This idea of separate compilation is suitable for non-modular programming languages based on the block structure.One of the virtues is that the method sup- ports both modular programming strategy and stepwise refinement strategy.
Keywords:Separate compilation  Compilation unit  Syntactic correctness  Modular programming strategy  Stepwise refinement
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号