# CP/M

**CP/M**（Control Program for Microcomputers，微型计算机控制程序）是[加里·基尔代尔](https://www.edgepedia.org/zh/gary-kildall)（Gary Kildall）于1974年编写的操作系统，目的是让基于英特尔8080微处理器的计算机能够从新推出的软盘驱动器读取数据并向其写入数据。该系统由基尔代尔的公司数字研究公司（Digital Research, Inc.）发行，在20世纪70年代末成为业余爱好者和小型企业微型计算机用户的主流操作系统，并确立了“硬件无关核心加机器适配层”的模式，后来的个人计算机操作系统纷纷效仿。<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup>

| 关键事实 | 详情 |
|---|---|
| 全名 | Control Program for Microcomputers（微型计算机控制程序）<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> |
| 作者 | 加里·基尔代尔，他后来在加利福尼亚州太平洋格罗夫创立了数字研究公司<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup><sup> • </sup><sup>[2](https://archive.computerhistory.org/resources/access/text/2024/06/102751675-05-01-acc.pdf)</sup> |
| 首个原型 | 1974年秋在基尔代尔自家后院的工具棚中演示<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> |
| 目标硬件 | 基于英特尔8080微处理器、配备软盘存储的计算机<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> |
| 引入BIOS | 1.3版（1976年），首个包含基本输入输出系统代码的版本，使移植到不同计算机变得容易<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> |
| 市场地位 | 20世纪70年代末业余爱好者和小型企业系统的主流操作系统<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> |
| 荣誉 | 被认定为电气工程与计算领域的IEEE里程碑，原数字研究公司总部外设有铜牌<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> |

## 设计

CP/M的编写是为了解决一个具体问题：新型软盘驱动器存储单元需要软件来从基于英特尔8080的计算机读取数据并向其写入数据。<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> 基尔代尔的设计将系统分为若干层。BDOS（Basic Disk Operating System，基本磁盘操作系统）是不依赖硬件的部分；硬件相关的BIOS（Basic Input Output System，基本输入输出系统）则为特定机器提供定制接口。制造商要将发行版CP/M适配到新计算机上，只需提供一个新的BIOS。<sup>[3](https://www.cpm.z80.de/manuals/Bondwell_CPMOS.pdf)</sup>

这种分层设计是该系统得以广泛商业推广的原因。[计算机历史博物馆](https://www.edgepedia.org/zh/computer-history-museum)董事长伦·舒斯特克（Len Shustek）称，CP/M与同时代大多数操作系统不同之处在于它占用内存极少，且可移植到许多不同的个人计算机型号；再加上推出早、成本低，用他的话说，这使它获得了“一飞冲天的成功”。<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> BIOS的理念与操作系统本身一同归功于基尔代尔：两者结合，使基于微处理器的计算机能够与磁盘驱动器存储单元通信。<sup>[2](https://archive.computerhistory.org/resources/access/text/2024/06/102751675-05-01-acc.pdf)</sup>

文件系统在各版本间有所变化。CP/M 2.2允许每个文件有512个区段，而CP/M 3及更高版本最多允许2048个。<sup>[4](https://linux.die.net/man/5/cpm)</sup>

## 版本与源代码发布

计算机历史博物馆收藏了CP/M四个早期版本（1975年至1979年）的源代码，并于2014年10月为纪念1974年原型演示40周年而将其发布供非商业使用。该集合包括博物馆所能找到的最早源代码，写于正式版本号出现之前；那段前版本代码曾用于劳伦斯利弗莫尔实验室的“章鱼”网络系统。1976年的1.3版是首个包含BIOS代码的发行版。<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup>

博物馆的时间线将首个商业成功的微型计算机操作系统的开发归功于基尔代尔。<sup>[5](https://www.computerhistory.org/timeline/software-languages/?pStoreID=gallagher_affinity%2F1000)</sup> 日本信息处理学会美国分会的计算机博物馆将CP/M——它称之为世界上首个个人计算机操作系统——的开发时间定为1974年，即基尔代尔后来创立数字研究公司的那一年。<sup>[6](https://museum.ipsj.or.jp/computer/personal/index.html)</sup>

## 软件库

CP/M的商业优势建立在一个庞大的现成应用软件库之上。当时的指南描述了典型的CP/M机器运行WordStar进行文字处理、dBASE II进行数据库管理、SuperCalc进行电子表格计算，这些产品之间可以交换数据文件。<sup>[7](https://bitsavers.org/magazines/Users_Guide/UsersGuide_No1Revised_Apr1984.pdf)</sup> 其中WordStar尤其成为该平台的标准文字处理器。<sup>[8](https://www.wordstar.org/index.php/wordstar-history?id=11&view=category)</sup>

该平台也以硬件形式销售。1981年，亚当·奥斯本（Adam Osborne）推出了基于CP/M的便携式计算机Osborne 1，随机捆绑了价值约1500美元的软件，包括WordStar和SuperCalc。<sup>[8](https://www.wordstar.org/index.php/wordstar-history?id=11&view=category)</sup> 微软的首款硬件产品Z-80 SoftCard于1980年上市，售价350美元，是一块附加卡，让Apple II用户能在自己的机器上运行CP/M软件库；当时的报道称其为一项突破，它也是微软在推出当年的最大收入来源。<sup>[9](https://www.tomshardware.com/software/storied-windows-dev-reminisces-about-microsofts-first-hardware-product-45-years-ago-the-z-80-softcard-was-an-apple-ii-add-in-card)</sup>

## 与MS-DOS的竞争

20世纪80年代初IBM开发个人计算机时，需要一款操作系统，首先找上了CP/M的制造商数字研究公司；那些谈判未能成功。[比尔·盖茨](https://www.edgepedia.org/zh/bill-gates)随后以约7.5万美元从西雅图计算机产品公司（Seattle Computer Products）买下86-DOS的权利，为IBM进行适配，1981年随IBM PC以PC-DOS之名出货。<sup>[10](https://as.com/meristation/betech/bill-gates-vendio-a-ibm-un-sistema-operativo-que-microsoft-ni-siquiera-tenia-la-jugada-de-75000-dolares-que-cambio-la-informatica-f202609-n/)</sup> 关于这笔交易经过的报道说法不一，但IBM在与微软签约前的几个月里一直与[数字研究公司](https://www.edgepedia.org/zh/digital-research)保持密切接触。<sup>[11](https://www.techradar.com/pro/the-ibm-deal-that-sparked-microsofts-rise-to-prominence)</sup>

两个系统曾直接竞争一段时间。1982年《Byte》杂志刊登了系统制造商理查德·洛马斯（Richard Lomas）对CP/M-86和MS-DOS的详细比较，发现CP/M-86可用的语言和应用软件比MS-DOS更多；MS-DOS之所以仍能取得进展，原因之一是IBM在大型企业传统数据处理部门拥有庞大的既有客户群。<sup>[12](https://econwpa.ub.uni-muenchen.de/econ-wp/io/papers/9502/9502002.pdf)</sup> 短短几年间，MS-DOS便取得了全行业的统治地位，成为全球领先的PC操作系统，直到Windows最终将其取代。<sup>[11](https://www.techradar.com/pro/the-ibm-deal-that-sparked-microsofts-rise-to-prominence)</sup>

尼尔·甘达尔（Neil Gandal）对1978年4月至1986年10月两个平台市场的一项经济学研究得出结论：推动DOS发展的底层过程与推动CP/M发展的底层过程不同，许多差异与软件开发的作用有关。<sup>[13](https://onlinelibrary.wiley.com/doi/full/10.1111/1467-6451.00091)</sup>

## 抄袭代码的指控

由于86-DOS在界面上与CP/M相似，微软抄袭了基尔代尔代码的说法流传了数十年。[哈罗德·埃文斯](https://www.edgepedia.org/zh/harold-evans)（Harold Evans）2004年的著作《他们创造了美国》（They Made America）收录了基尔代尔的说法，称86-DOS的API和外观与感觉系抄袭自CP/M；专栏作家[杰里·波内尔](https://www.edgepedia.org/zh/jerry-pournelle)（Jerry Pournelle）在2006年的一档播客中说，CP/M代码中包含一条秘密命令，在MS-DOS 1中输入后会显示版权声明和基尔代尔的全名。<sup>[14](https://www.wired.com/2012/08/ms-dos-examined-for-thef/)</sup> 取证软件工程师鲍勃·蔡德曼（Bob Zeidman）分析了两套代码库，于2012年得出结论：QDOS和MS-DOS均非抄袭自CP/M，也不是CP/M的衍生物。<sup>[15](https://www.zeidmanconsulting.com/DOS_comparisons/Was%20MS-DOS%20code%20copied%20from%20CPM.pdf)</sup>

## 遗产

CP/M的架构比其市场地位更为长久。将硬件无关的操作核心与针对每台机器的BIOS分离，成为将操作系统移植到互不兼容的个人计算机上的标准做法，IBM PC的DOS也延续了同样的分层。<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup><sup> • </sup><sup>[3](https://www.cpm.z80.de/manuals/Bondwell_CPMOS.pdf)</sup> IEEE在加利福尼亚州太平洋格罗夫的原数字研究公司总部外安装了一块铜牌，认定CP/M的开发为电气工程与[计算](https://www.edgepedia.org/zh/computing)领域的IEEE里程碑。<sup>[1](https://computerhistory.org/press-releases/cp-m-release/)</sup> 该操作系统至今仍通过模拟器在爱好者中活跃使用，正版数字研究公司CP/M 2.2的CCP和BDOS源代码可依据数字研究公司后继者DRDOS Inc.的授权进行再分发。<sup>[16](https://github.com/deg/CPeMulator)</sup>

## References

1. [Computer History Museum Makes Historic CP/M Operating System Source Code Available to the Public, Computer History Museum (2014)](https://computerhistory.org/press-releases/cp-m-release/)
2. [IEEE Milestone citation text for CP/M, Computer History Museum archive (PDF)](https://archive.computerhistory.org/resources/access/text/2024/06/102751675-05-01-acc.pdf)
3. [CP/M Operating System Manual (Bondwell), bitsavers mirror](https://www.cpm.z80.de/manuals/Bondwell_CPMOS.pdf)
4. [cpm(5): CP/M disk and file system format, Linux man page](https://linux.die.net/man/5/cpm)
5. [Software & Languages, Timeline of Computer History, Computer History Museum](https://www.computerhistory.org/timeline/software-languages/?pStoreID=gallagher_affinity%2F1000)
6. [Personal computers, Information Processing Society of Japan Computer Museum](https://museum.ipsj.or.jp/computer/personal/index.html)
7. [The World of CP/M / CP/M Tutorial, User's Guide No. 1 Revised (April 1984), bitsavers](https://bitsavers.org/magazines/Users_Guide/UsersGuide_No1Revised_Apr1984.pdf)
8. [A Potted History of WordStar, wordstar.org](https://www.wordstar.org/index.php/wordstar-history?id=11&view=category)
9. [Storied Windows dev reminisces about Microsoft's first hardware product 45 years ago, Tom's Hardware](https://www.tomshardware.com/software/storied-windows-dev-reminisces-about-microsofts-first-hardware-product-45-years-ago-the-z-80-softcard-was-an-apple-ii-add-in-card)
10. [Bill Gates vendió a IBM un sistema operativo que Microsoft ni siquiera tenía, AS.com](https://as.com/meristation/betech/bill-gates-vendio-a-ibm-un-sistema-operativo-que-microsoft-ni-siquiera-tenia-la-jugada-de-75000-dolares-que-cambio-la-informatica-f202609-n/)
11. [The IBM deal that sparked Microsoft's rise to prominence, TechRadar](https://www.techradar.com/pro/the-ibm-deal-that-sparked-microsofts-rise-to-prominence)
12. [Adoptions and Orphans in the Early Microcomputer Market (working paper version), econ-wpa](https://econwpa.ub.uni-muenchen.de/econ-wp/io/papers/9502/9502002.pdf)
13. [Neil Gandal (1999). Adoptions and Orphans in the Early Microcomputer Market, The Journal of Industrial Economics](https://onlinelibrary.wiley.com/doi/full/10.1111/1467-6451.00091)
14. [Was Microsoft's Empire Built on Stolen Code? We May Never Know, WIRED (2012)](https://www.wired.com/2012/08/ms-dos-examined-for-thef/)
15. [Was MS-DOS Code Copied from CP/M?, Bob Zeidman, Zeidman Consulting](https://www.zeidmanconsulting.com/DOS_comparisons/Was%20MS-DOS%20code%20copied%20from%20CPM.pdf)
16. [CPeMulator: a from-scratch Z80 CP/M 2.2 emulator in Rust, GitHub](https://github.com/deg/CPeMulator)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Operating systems

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/cp-m

English original: https://www.edgepedia.org/cp-m
