APPLYING THE UCSD UNIT CONCEPT.

被引:0
|
作者
Hoxie, Vernon C.
机构
来源
Journal of Pascal, Ada & Modula-2 | 1988年 / 7卷 / 03期
关键词
COMPUTER OPERATING SYSTEMS - Program Compilers - COMPUTER PROGRAMMING;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The concept of UNIT is a UCSD process by which procedures can be collected for use as if they were a fundamental part of Pascal. Unlike INCLUDE files, UNIT's are previously compiled and tested, they need only to be linked to user programs. Unlike SEGMENT PROCEDUREs (overlays), they may define global CONSTants, TYPES, or VARiables and may contain any number of individually referenced PROCEDURES or FUNCTIONS. When a UNIT is compiled, the INTERFACE part is copied in TEXT format and the IMPLEMENTATION part is converted to object code. Later, when a program is compiled, the INTERFACE part is referenced. The definitions listed in the UNIT are then included in the outer block of the program. After a successful compilation, the linker copies the IMPLEMENTATION part along with the program code to a new. CODE file ready for use. Subsequent revisions to the UNIT will not affect the program unless it is recompiled or relinked.
引用
收藏
页码:14 / 17
相关论文
共 50 条