计算机编程手册模板文档

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

样例说明 本文档适用于XXX研究所开发的XXX型号的专用计算机。
计算机编程手册(CPM)——范围
1.2 系统概述 •本条应概述本文档所适用的计算机系统的用途。
1.2 Computer system overview. This paragraph shall briefly state the purpose of the computer system to which this document applies. 样例说明
c) 专用寄存器和专用字(例如: 3) Special registers and words (e.g., stack 堆栈指针、程序计数器等) pointer, program counter)
d) 控制指令(例如:分支、跳 4) Control instructions (e.g., branch, jump, 转、子程序和过程调用指令、 subroutine and procedure call instructions, 特权指令以及其操作模式) privileged instructions, and the modes they operate in)
计算机编程手册(CPM)
计算机编程手册(CPM)—概述
• 为程序员描述对指定的计算机进行编程所需要的信息
概述
• 软件编程环境:描述系统配置和操作信息,以及编译、 内容 汇编和连接所需要的设备和程序
• 编程信息:描述编程特征、程序指令、输入和输出控
制、错误检测和诊断特征以及其他编程技术等
计算机编程手册(CPM)—概述
b) 字长
c) 内存容量和特性 d) 指令集的特征 e) 中断能力 f) 操作方式(例如:批处理、 交互、特权、非特权等) g) 操作寄存器
2) Word length
3) Memory capacity and characteristics 4) Instruction set characteristics 5) Interrupt capabilities 6) Modes of operation (e.g., batch, interactive, privileged, non-privileged) 7) Operational registers
d) 执行时间
3) Condition codes set
4) Execution time
e) 机器码格式
f) 记忆码格式
5) Machine-code format
6) Mnemonic conventions
g) 其他特性
7) Other characteristics
计算机编程手册(CPM)—编程 信息
本文档密级为秘密,本文件的复制、分发应得到XXX所的授权,并遵循
XXX的保密规定……
计算机编程手册(CPM)—引用文 档
2 引用文档 •本章应列出引用文档的编号、标题、编写单位、修订版及日期 •应标识不能通过正常采购活动得到的文档的来源 文档编号
XXX-XX
文档名称
系统规格说明
发布日期
2009-05-25
4) Interface components
f) 外围设备的设备号、操 作码以及内存单元
5) Device numbers, operational codes, and memory locations for peripheral equipment
计算机编程手册(CPM)—编程 信息
4.4 其他编程技术 本条应描述与计算机系统有关的附加的、受限的或专用的编程技术 (例如:微程序控制节的简述)。 d. Additional, restricted, or special programming techniques associated with the computer system (e.g., a concise description of the microprogram control section)
e) 子程序和过程(例如:不可 5) Subroutines and procedures (e.g., non重入、可重入、宏代码例程、 reentrant, reentrant, macrocode routines, 变元表、参数传递约定) argument lists, parameter passing conventions) f) 中断处理
c) 串行和并行数据通道
1) Initial loading and verification of computer memory
2) Serial and parallel data channels
d) 离散的输入和输出
e) 接口部件
3) Discrete inputs and outputs
g) 定时器与时钟 h) 内存保护特征(例如:只读 内存) i) 其他的特征,例如指令或数 据的高速缓存的体系结构
6) Interrupt processing
7) Timers and clocks 8) Memory protection features (e.g., read-only memory) 9) Additional features, such as instruction or data cache architecture
计算机编程手册(CPM)—编程 信息
4.2 程序指令 本条应描述计算机系统的每条指令,(若适用)每条指令应包括: b. Description of each instruction, including, as applicable:
a) 使用方法 b) 语法 1) Use 2) Syntax
c) 条件码集合
计算机编程手册(CPM)——范围
1.1 标识 •描述本文档所适用的计算机系统的制造商名、型号和其他标识信息。 1.1 Identification Identification. This paragraph shall contain the manufacturer’s name, model number, and any other identifying information for the computer system to which this document applies.


3.1 The Computer Programming Manual (CPM) provides information needed by a programmer to understand how to program a given computer. This manual focuses on the computer itself, not on particular software that will run on the computer. 3.2 The CPM is intended for newly developed computers, special-purpose computers, or other computers for which commercial or other programming manuals are not readily available.
XXX型号的计算机系统是为XXX环境下抗电磁干扰专门设计的专用计算机系统。
计算机编程手册(CPM)——范围
1.3 文档概述
•本条应概述本文档的用途和内容
•并描述与它的使用有关的保密性方面的要求
样例说明
本文档描述了在XXX型号专用计算机上进行编程的相关知识,包括如下 内容: 1. 软件编程环境 2. 计算机的编程特征
版本
V1.0
编写单位
XXX研究所
引用文档的范围 及排列顺序
a.国家标准 b.国家军用标准 c.行业标准 d.其它文件
引用文档不应包括: • 文档编制过程中参考的文件
计算机编程手册(CPM)—软件 编程环境
3 软件编程环境 3. Programming environment. This section shall be divided into paragraphs as appropriate to provide the following information. 3.1 系统配置 本条应描述计算机系统的部件和配置情况。 a. The components and configuration of the computer system
计算机编程手册(CPM)—编程 信息
a) 数据表示法(例如:字节、 1) Data representation (e.g., byte, word, 字、整形、浮点、双精度等) integer, floating-point, double precision) b) 指令格式和寻址方式 2) Instruction formats and addressing modes
h) 错误指示器
i) 输入/输出特性 j) 特殊Βιβλιοθήκη Baidu性
8) Error indicators
9) Input/output characteristics 10) Special features
计算机编程手册(CPM)—软件 编程环境
3.3 编译、汇编和连接 本条应描述在计算机系统上执行编译与汇编所需要的设备(例如磁带、 磁盘、其他外围设备)。(若适用)按名称与版本号标识编辑程序、连 接程序、连接编辑程序、编译程序、汇编程序、交叉编译程序、交叉汇 编程序和其他实用程序,并引用适当的文档来描述他们的用法。对所有 加载、执行、记录结果所必需的特殊标志或指令要着重强调。 c. Description of the equipment (e.g., tapes, disks, other peripheral equipment) necessary to perform compilations and assemblies on the computer system. Identify (as applicable) by name and version number the editor, linker, link-editor, compiler, assembler, cross-compilers, cross-assemblers, and other utilities used, and reference appropriate manuals describing their use. Highlight any special flags or instructions necessary for loading, executing, or recording the results.
4.3 输入和输出控制 本条应描述输入和输出控制信息,(若适用)包括: c. Description of input and output control programming, including, as applicable:
a) 描述输入和输出控制的 编程
b) 计算机内存的初始加载 和校验
计算机编程手册(CPM)—软件 编程环境
3.2 操作信息 本条应描述计算机系统的操作特性、能力和限制,(若适用)应包括: b. Operating characteristics, capabilities, and limitations, including, as applicable:
a) 时钟周期 1) Machine cycle time
计算机编程手册(CPM)—编程 信息
4 编程信息 4. Programming information. This section shall be divided into paragraphs as appropriate to provide the following information. 4.1 编程特征 本条应描述计算机指令集体系结构的编程特征,(若适用)包括: a. Description of the programming features of the computer’s instruction set architecture, including, as applicable:
相关文档
最新文档