码迷,mamicode.com
首页 > 其他好文 > 详细

venus2

时间:2015-05-11 21:21:10      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:

发现内部一些完全系统误差误差追溯打破有关资源规则导致此类错误抽象级别一个额外好处方便可以修改系统 设计分层拟议修改影响清晰可见

 

Appendix--A User‘s View of the S ystem
     The user views the system in two ways. First, he must write his
programs; for this he is interested in available data structures and
system procedures. Then he is interested in running and debugging
his programs.
Programs running under Venus use segments for all storage--
procedures, data, and pushdown stacks. Because segments are available
by external name through dictionaries, users can readily share
data and procedures. Users may also synchronize with other users
through queues and semaphores.
A user runs on-line and interactively. He starts up by typing a
command on a teletype and is assigned a virtual machine under the
control of an interactive system procedure called the Loader. The
Loader recognizes many commands; the most important is the "E"
command, which passes control to a specified system, utility, or user
procedure. Important system and utility procedures are the Assembler,
Editor, Tape Requester, and Debugger.
The user submits card decks to be read prior to his run; he may
access all decks through a command to the Loader. The names of
the segments containing the card deck images are entered in a dictionary
associated with the user. The user may read segments from
tape; the names of these segments are also entered into his dictionary
where they may be assembled or edited on command. Binding of
intersegment references occurs on completion of assembly.

The user executes procedures by giving the "E" command.
Execution can occur with or without debugging; no change to the
procedures being run is required. Debugging is handled by an
interactive system procedure which runs before the execution of
every instruction and can be used to stop execution at a specified
"breakpoint." A dialogue with the user then commences in which
the contents of a segment or his work area may be displayed and
modified, a new breakpoint specified, and control returned to the
interrupted procedure or the Loader.
The system also provides interactive interrupt procedures which
run as the result of exceptional conditions, for example, a stack
underflow or overflow. They make use of a subset of the debugging
commands, permitting the user to discover the reason for the error,
restore his data, and return to the Loader.
When the user has finished running he saves his symbolic data
on tape and then informs the Loader, which releases his virtual
machine and destroys his symbolic data. His checked-out programs
may be entered in the system and become accessible to others
through dictionaries.

venus2

标签:

原文地址:http://www.cnblogs.com/icecri/p/4495395.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!