# 玛格丽特·汉密尔顿（软件工程师）

**玛格丽特·汉密尔顿**（Margaret Heafield Hamilton，1936年8月17日生）是一位美国计算机科学家，她曾在麻省理工学院仪器实验室领导团队为美国国家航空航天局的阿波罗计划开发机载飞行软件，并被认为创造了“软件工程”一词。<sup>[1](https://apnews.com/article/277117af951ae33daa84c62658580322)</sup><sup> • </sup><sup>[2](https://time.com/3948364/moon-landing-apollo-11-margaret-hamilton/)</sup> 她于2016年获得[总统自由勋章](https://www.edgepedia.org/zh/presidential-medal-of-freedom)。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup>

| 关键事实 | 详情 |
|---|---|
| 出生 | 1936年8月17日，印第安纳州帕奥利<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> |
| 教育背景 | 厄勒姆学院数学学士，辅修哲学，1958年<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> |
| 阿波罗计划中的角色 | 1965年麻省理工学院阿波罗项目聘用的第一位程序员；到1968年升任指令与服务舱团队助理主管，负责指令舱和登月舱的软件<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup><sup> • </sup><sup>[4](https://www.geschichte-der-informatik.de/articles/margaret_hamilton_and_the_apollo_software/)</sup> |
| 团队规模 | 她的团队约有100名软件工程师；到1968年，参与阿波罗软件开发的总体人数超过400人<sup>[5](https://www.theguardian.com/technology/2019/jul/13/margaret-hamilton-computer-scientist-interview-software-apollo-missions-1969-moon-landing-nasa-women)</sup><sup> • </sup><sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> |
| 阿波罗11号登月 | 她团队开发的优先级驱动软件在登月下降过程中处理了1201和1202执行溢出警报，使登月得以继续<sup>[6](https://history.nasa.gov/wp-content/uploads/static/history/alsj/a11/a11.1201-pa.html)</sup> |
| 创造的术语 | 在1966至1968年阿波罗计划期间开始使用“软件工程”一词，旨在赋予软件与其他工程学科同等的地位<sup>[7](https://www.ibiblio.org/apollo/Documents/Birth%20of%20Software%20Engineering%20During%20Apollo%20-%20Ward.pdf)</sup> |
| 主要荣誉 | 美国国家航空航天局杰出太空法案奖（2003年，附37,200美元奖金，为NASA历史上个人最高奖金）；总统自由勋章（2016年11月22日）<sup>[8](https://ntrs.nasa.gov/api/citations/20040034266/downloads/20040034266.pdf)</sup><sup> • </sup><sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> |
| 创办的公司 | 高阶软件公司（1976年创立）；汉密尔顿技术公司（1986年创立），通用系统语言的开发者<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> |

## 早年生活与第一份编程工作

汉密尔顿出生在印第安纳州帕奥利，原名玛格丽特·伊莱恩·希菲尔德，是肯尼思·希菲尔德和埃丝特·希菲尔德四个孩子中年纪最大的；全家后来搬到密歇根上半岛，她的父亲是大学英语和哲学教授。<sup>[9](https://www.inquirer.com/news/nation-world/margaret-hamilton-nasa-apollo-programmer-obituary-20261008.html)</sup> 1955年，她进入密歇根大学学习数学，后转学到印第安纳州里士满的[厄勒姆学院](https://www.edgepedia.org/zh/earlham-college)，1958年获得数学学士学位，辅修哲学。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup>

1959年，她随即将进入法学院的丈夫搬到波士顿地区，在麻省理工学院气象系获得一份临时职位，与爱德华·N·洛伦兹教授合作研究天气预报软件。这是她第一次接触编程，她的工作为洛伦兹后来关于混沌理论的出版物提供了支持。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> 1961年，她转到[麻省理工学院林肯实验室](https://www.edgepedia.org/zh/mit-lincoln-laboratory)，成为SAGE（[半自动地面环境](https://www.edgepedia.org/zh/semi-automatic-ground-environment)）项目的程序员——这是美国第一个防空系统，她为用于搜索潜在敌机的AN/FSQ-7计算机原型编写软件。在那里，她开始对软件可靠性产生兴趣，这在当时还是一个基本未被探索的概念。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup>

## 阿波罗计划

1965年，正当她准备恢复研究生学业时，她的丈夫看到一则报纸广告：麻省理工学院仪器实验室正在招聘人员开发“把人送上月球”的软件。该实验室已经赢得NASA建造阿波罗机载飞行软件的合同，此前已被选定设计计算机硬件。汉密尔顿提出申请，被聘为麻省理工学院阿波罗项目的第一位程序员，也是该实验室第一位女性程序员。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> “我既被这个纯粹的想法所吸引，也被它从未被做过这一事实所吸引，”她在2019年对《卫报》说。“我是第一个加入的程序员，也是他们雇用的第一位女性。”<sup>[5](https://www.theguardian.com/technology/2019/jul/13/margaret-hamilton-computer-scientist-interview-software-apollo-missions-1969-moon-landing-nasa-women)</sup>

她最初为无人任务编写软件，后被提升为载人任务机载飞行软件团队的负责人。到1968年，她担任助理主管，领导指令与服务舱团队，超过400人参与阿波罗软件的开发。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> 任务涵盖两台机载计算机——一台在指令舱哥伦比亚号上，一台在登月舱鹰号上——以及它们共享的系统软件；她自己的团队增长到约100名软件工程师。<sup>[5](https://www.theguardian.com/technology/2019/jul/13/margaret-hamilton-computer-scientist-interview-software-apollo-missions-1969-moon-landing-nasa-women)</sup> 她主管实验室的软件工程部，负责两艘飞船的机载飞行软件。<sup>[10](https://news.mit.edu/2019/behind-scenes-apollo-mission-0718?bcmt=1)</sup><sup> • </sup><sup>[4](https://www.geschichte-der-informatik.de/articles/margaret_hamilton_and_the_apollo_software/)</sup> 同事们称她为“绳母”，指的是磁芯绳存储器——阿波罗程序以铜线穿过或不穿过磁芯的方式存储其中。<sup>[11](https://sirismm.si.edu/EADpdfs/NASM.1986.0158.pdf)</sup><sup> • </sup><sup>[9](https://www.inquirer.com/news/nation-world/margaret-hamilton-nasa-apollo-programmer-obituary-20261008.html)</sup>

软件要求极高的可靠性：在整个任务过程中，它必须能够在任何时刻识别故障并从中恢复，同时还要在硬件限制范围内运行。<sup>[5](https://www.theguardian.com/technology/2019/jul/13/margaret-hamilton-computer-scientist-interview-software-apollo-missions-1969-moon-landing-nasa-women)</sup> 汉密尔顿和她的团队开发了后来被NASA特别指出是现代软件工程基石的一些概念：异步软件、优先级调度、端到端测试，以及人在回路决策能力，如优先显示。<sup>[8](https://ntrs.nasa.gov/api/citations/20040034266/downloads/20040034266.pdf)</sup>

**劳伦的错误。** 大约在1966年，汉密尔顿年幼的女儿劳伦在玩指令舱模拟器时，在模拟飞船飞行途中激活了发射前程序P01，导致模拟崩溃并清除了导航数据。汉密尔顿提议修改软件，防止飞行过程中选择发射前程序，但麻省理工学院和NASA的官员否决了她，理由是宇航员训练有素，不会犯这种错误。1968年[阿波罗8号](https://www.edgepedia.org/zh/apollo-8)期间，一名宇航员无意中做了和劳伦完全相同的事，汉密尔顿和她的团队被召来恢复任务；她提议的修改随后被整合到程序中。麻省理工学院新闻称这是“防御性”编程的早期范例——即构建能够自行预测或修复错误的软件。<sup>[5](https://www.theguardian.com/technology/2019/jul/13/margaret-hamilton-computer-scientist-interview-software-apollo-missions-1969-moon-landing-nasa-women)</sup><sup> • </sup><sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup>

## 阿波罗11号与1202警报

1969年7月20日，鹰号登月舱登月前几分钟，登月舱计算机发出了执行溢出警报1202，随后又发出1201，原因是交会雷达开关配置错误，导致计算机不断为不存在的雷达数据调度任务。每次警报出现，计算机都会重启，重新启动下降发动机控制和显示运行等重要工作，而不会重启错误调度的雷达任务。<sup>[6](https://history.nasa.gov/wp-content/uploads/static/history/alsj/a11/a11.1201-pa.html)</sup> 汉密尔顿多年前就力争用紧急情况的优先显示来打断宇航员，最初遭到硬件工程师的反对，他们认为这不可能做到。<sup>[12](https://archive.computerhistory.org/resources/access/text/2022/03/102738243-05-01-acc.pdf)</sup> 休斯顿选择继续任务，鹰号安全着陆。“如果计算机没有识别出这个问题并采取恢复措施，我怀疑阿波罗11号能否成为那次成功的登月，”汉密尔顿在1971年写给《数据自动化》杂志的信中写道。<sup>[9](https://www.inquirer.com/news/nation-world/margaret-hamilton-nasa-apollo-programmer-obituary-20261008.html)</sup>

## 创造“软件工程”一词

1966至1968年间，进度压力和交付延迟导致NASA与麻省理工学院之间产生摩擦，汉密尔顿在此期间开始使用“软件工程”一词。<sup>[7](https://www.ibiblio.org/apollo/Documents/Birth%20of%20Software%20Engineering%20During%20Apollo%20-%20Ward.pdf)</sup> 她在2018年接受《国家报》采访时解释了动机：“我努力为软件争取正当地位，使它以及构建它的人得到应有的尊重，因此我开始使用‘软件工程’一词，将其与硬件和其他类型的工程区分开来，同时把每种工程都视为整体系统工程过程的一部分。”她回忆说，当她第一次使用这个说法时，人们觉得很有趣，这个说法在很长一段时间里都是个笑话。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> 一篇关于麻省理工学院阿波罗软件工作的论文认为，麻省理工学院已经经历过1968年和1969年北约软件工程会议所讨论的“软件危机”，并在解决方案得到广泛传播之前就已确定了这些方案。<sup>[7](https://www.ibiblio.org/apollo/Documents/Birth%20of%20Software%20Engineering%20During%20Apollo%20-%20Ward.pdf)</sup>

## 后期职业生涯

1969年至1972年间，汉密尔顿参与了六次登月任务，她的编程工作也为1973年发射的天空实验室和航天飞机的早期设计做出了贡献。她在1970年代中期离开麻省理工学院，1976年创办了高阶软件公司，围绕她防止错误和容错的方法构建业务；十年后，她创办了汉密尔顿技术公司，其产品通用系统语言（USL）是一种用于建模和工程化复杂软件系统的语言和方法论，强调避免错误和[防御性编程](https://www.edgepedia.org/zh/defensive-programming)。<sup>[9](https://www.inquirer.com/news/nation-world/margaret-hamilton-nasa-apollo-programmer-obituary-20261008.html)</sup><sup> • </sup><sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> 她的形式化方法——高阶软件（HOS）——面向大规模多程序和多处理器系统，致力于系统可靠性，将系统及其所有接口定义为一个完整且一致的可计算系统，建立在六条公理之上。<sup>[13](https://ntrs.nasa.gov/citations/19760041281)</sup> 她撰写了130多篇关于系统设计和软件开发的出版物。<sup>[11](https://sirismm.si.edu/EADpdfs/NASM.1986.0158.pdf)</sup>

## 荣誉

2003年，NASA授予汉密尔顿杰出太空法案奖，以表彰她的科学和技术贡献；该奖项附有一张37,200美元的支票，是NASA历史上授予个人的最高奖金，NASA局长肖恩·奥基夫说，她和她的团队创造的概念“成为现代‘软件工程’的基石”。<sup>[8](https://ntrs.nasa.gov/api/citations/20040034266/downloads/20040034266.pdf)</sup> 2016年11月22日，奥巴马总统授予她总统自由勋章，这是美国最高的平民荣誉；他的授勋词指出，“汉密尔顿定义了软件工程的新形式，帮助启动了一个永远改变人类历史的行业。”<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> 2017年，她当选[计算机历史博物馆](https://www.edgepedia.org/zh/computer-history-museum)会士，2019年获得无畏终身成就奖，2022年入选国家航空名人堂。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup>

在2010年代中期之前，汉密尔顿鲜为公众所知，直到一张她站在团队编写的[阿波罗导航计算机](https://www.edgepedia.org/zh/apollo-guidance-computer)代码打印件高高堆叠旁的照片开始在社交媒体上流传。<sup>[10](https://news.mit.edu/2019/behind-scenes-apollo-mission-0718?bcmt=1)</sup> 2015年，阿波罗软件被完整地上传到GitHub，2017年乐高推出了“NASA女性”套装，其中包括一个汉密尔顿的迷你人仔，站在一堆代码旁边。<sup>[3](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)</sup> 2019年，为纪念登月50周年，谷歌在[莫哈韦沙漠](https://www.edgepedia.org/zh/mojave-desert)的伊万帕太阳能发电场调动了超过10万面镜子，用反射的月光创作了一幅汉密尔顿的夜间肖像。<sup>[9](https://www.inquirer.com/news/nation-world/margaret-hamilton-nasa-apollo-programmer-obituary-20261008.html)</sup> 她的女儿劳伦·汉密尔顿说，她“从没人知道她是谁，到突然所有人都知道她是谁，尤其是在她的领域”，不过，作为一个性格内敛的人，她并不习惯受到这样的关注。<sup>[1](https://apnews.com/article/277117af951ae33daa84c62658580322)</sup>

## References

1. [Margaret Hamilton, who led a software team for NASA's Apollo program, dies at 90, AP News](https://apnews.com/article/277117af951ae33daa84c62658580322)
2. [Remembering the Apollo 11 Moon Landing With the Woman Who Made It Happen, TIME](https://time.com/3948364/moon-landing-apollo-11-margaret-hamilton/)
3. [Margaret Hamilton, computing pioneer who led software development for the Apollo program, dies at 90, MIT News](https://news.mit.edu/2026/margaret-hamilton-computing-pioneer-dies-1007)
4. [Margaret Hamilton and the Apollo Software, Geschichte der Informatik](https://www.geschichte-der-informatik.de/articles/margaret_hamilton_and_the_apollo_software/)
5. [Margaret Hamilton: 'They worried that the men might rebel. They didn't', The Guardian (2019)](https://www.theguardian.com/technology/2019/jul/13/margaret-hamilton-computer-scientist-interview-software-apollo-missions-1969-moon-landing-nasa-women)
6. [Apollo 11 Lunar Surface Journal: Program Alarms, NASA History](https://history.nasa.gov/wp-content/uploads/static/history/alsj/a11/a11.1201-pa.html)
7. [From Art to Engineering: The Birth of Software Engineering during the Development of the Apollo Guidance Computer (dissertation)](https://www.ibiblio.org/apollo/Documents/Birth%20of%20Software%20Engineering%20During%20Apollo%20-%20Ward.pdf)
8. [NASA Honors Apollo Engineer, NASA News Release #03-281 (September 3, 2003), NASA Technical Reports Server](https://ntrs.nasa.gov/api/citations/20040034266/downloads/20040034266.pdf)
9. [Woman whose software guided the Apollo missions has died, The Philadelphia Inquirer / New York Times](https://www.inquirer.com/news/nation-world/margaret-hamilton-nasa-apollo-programmer-obituary-20261008.html)
10. [Behind the scenes of the Apollo mission at MIT, MIT News (2019)](https://news.mit.edu/2019/behind-scenes-apollo-mission-0718?bcmt=1)
11. [Apollo Flight Guidance Computer Software Collection [Hamilton], Smithsonian National Air and Space Museum Archives](https://sirismm.si.edu/EADpdfs/NASM.1986.0158.pdf)
12. [Oral History of Margaret Hamilton, Computer History Museum](https://archive.computerhistory.org/resources/access/text/2022/03/102738243-05-01-acc.pdf)
13. [Higher Order Software: A Methodology for Defining Software, IEEE Transactions on Software Engineering SE-2(1), 1976, NASA NTRS](https://ntrs.nasa.gov/citations/19760041281)

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

Topic: 技术与人造世界 › 工程师与计算机科学家 › 计算机科学家与人工智能研究者 › 计算机系统、网络、安全、数据库与编程语言研究者 › 软件工程

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/margaret-hamilton-software-engineer

English original: https://www.edgepedia.org/margaret-hamilton-software-engineer
