Computer Programming Manual (CPM) of GB/T 8567-2006 "Computer Software Documentation Specification"

illustrate:

1. The Computer Programming Manual (CPM) provides the information a programmer needs to understand how to program on a given computer . This manual focuses on the computer itself, not the specific software that runs on the computer.

2. CPM is mainly aimed at newly developed computers, special-purpose computers, and other computers that cannot use commercial or other programming manuals.

 

 

 

 

 

1 Introduction

1.1 Identification

 

 

This paragraph shall contain the manufacturer's name, model number, and other identifying information of the computer system to which this document applies.

1.2 Overview of Computer Systems

This paragraph should briefly describe the purpose of the computer system to which this document applies.

1.3 Documentation overview

This paragraph shall outline the purpose and content of this document and describe the confidentiality or privacy requirements associated with its use.

2 Reference documents

This chapter should list the numbers, titles, revisions, and dates of all documents referenced in this document. The source of all documentation not available through normal supply channels should also be identified.

3 Programming Environment

Where appropriate, this chapter should provide the following information in subsections:

a. Components and configurations of computer systems;

b. Operating characteristics, capabilities and limitations, if applicable , including:

 1) machine clock cycle;

 2) word length;

 3) Memory capacity and characteristics;

 4) The characteristics of the instruction set;

 5) Interruption capability;

 6)操作方式(例如批处理、交互式、特权级、非特权级)

 7)操作寄存器;

 8)错误指示器;

 9)输入/输出特性;

 10)特殊特性。

c.在计算机系统上执行编译与汇编所需的设备(例如磁带、磁盘、其他外围设备)描述。(若适用)按名字与版本号标识编辑程序、连接程序、连接编辑程序、编译程序、汇编程序、交叉编译程序、交叉汇编程序和使用的其他实用程序。并引用描述它们的用法的相应手册。要着重强调如何加载、执行、记录结果所必需的特殊的标志或指令。

4编程信息

适当的话,本章应分条提供以下信息:

a.描述计算机指令集体系结构的编程特点。(若适用)包括:

 1)数据表示(例如字节、字、整数、浮点数、双精度)

 2)指令格式和寻址方式;

 3)专用寄存器和字(例如堆栈指针、程序计数器)

 4)控制指令(例如分支、跳转、子程序和过程调用指令、特权级指令和它们的操作方式)

 5)子程序和过程(例如不可重人、可重人、宏代码例程、变元表、参数传递约定)

 6)中断处理;

 7)计时器与时钟;

 8)内存保护特点(例如只读内存)

 9)其他的特点,例如指令或数据的高速缓存的体系结构。

b.每一条指令的描述,(若适用),包括:

 1)用法;

 2)语法;

 3)条件码集合;

 4)执行时间;

 5)机器码格式;

 6)记忆码约定;

 7)其他的特性。

c.输入/输出控制编程描述,(若适用),包括:

 1)计算机内存的初始加载和校验;

 2)串行和并行数据通道;

 3)离散的输入、输出;

 4)接口部件;

 5)外围设备的设备号、操作码、内存单元。

d.与计算机系统有关的其他的、受限的或专用的编程技术(例如微程序控制节的简述)

e.说明上述的编程特点的实例,包括计算机系统各类指令正确用法的实例;

f.与计算机系统有关的错误检测与诊断功能,包括条件码、溢出和寻址异常中断、输入/输出错误状态指示器。

5注解

本章应包含有助于理解本文档的一般信息(例如背景信息、词汇表、原理)。本章应包含为理解本文档需要的术语和定义,所有缩略语和它们在文档中的含义的字母序列表。

附录

附录可用来提供那些为便于文档维护而单独出版的信息(例如图表、分类数据)。为便于处理,附录可单独装订成册。附录应按字母顺序(A,B)编排。

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326647405&siteId=291194637