已知最早版本的第一个C编译器
The earliest versions of the first C compiler known to exist

原始链接: https://github.com/mortdeus/legacy-cc

这篇帖子分享了丹尼斯·里奇编写的最早已知C编译器的源代码。这些历史文物与现代C编译器(如GCC)不兼容。发帖者建议出于怀旧和教育目的探索这段代码,并强调了它作为点燃现代软件产业的火花的意义。他们推荐可能使用Aiju的PDP-11/Unix模拟器([http://pdp11.aiju.de/])尝试编译该编译器,尽管他们本人尚未测试其功能。承认模拟器可能存在问题,发帖者表示有兴趣链接到一个假设的,在PDP-7硬件上运行的Unix虚拟机镜像,如果有人创建的话。源代码来自贝尔实验室([https://www.bell-labs.com/usr/dmr/www/primevalC.html] 或 [http://cm.bell-labs.co/who/dmr/primevalC.html]),并且也与研究Unix资源库([https://www.tuhs.org/Archive/Distributions/Research/])相关。

Hacker News 最新 | 往期 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 已知最早版本的第一个 C 编译器(github.com/mortdeus) 4 分 diginova 2 小时前 | 隐藏 | 往期 | 收藏 | 2 评论 Joker_vD 8 分钟前 | 下一条 [–] 有趣的是,它绝对不是一个单遍编译器。 回复 diginova 2 小时前 | 上一条 [–] 另请阅读编译器如何用同一种语言编写 - https://en.wikipedia.org/wiki/Bootstrapping_%28compilers%29https://stackoverflow.com/a/18247926/15566831 回复 加入我们 6 月 16-17 日在旧金山举办的 AI 初创公司学校! 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:

原文

The earliest versions of the very first c compiler known to exist in the wild written by the late legend himself dmr.

These are not capable of being compiled today with modern c compilers like gcc. I am only posting these here for the enjoyment and reminiscing of the spark that ignited a soon to be trillion dollar industry. Enjoy. :)

You guys might be able to play around building this compilier with Aiju's pdp-11/unix emulator. I havent tried building this myself so I cant confirm it works, but I posted the link to her emulator for anybody wanting to hack around with it.

Source: [https://www.bell-labs.com/usr/dmr/www/primevalC.html] alt-link [http://cm.bell-labs.co/who/dmr/primevalC.html]

Useful Links

PDP-11 Emulator: [http://pdp11.aiju.de/] (so i've been playing around with this to see if it still works, and it clearly has problems right now. if somebody wants to try and create like a VM image of unix running on PDP-7 hardware, id happily link to it here.)

Research Unix Repository: [https://www.tuhs.org/Archive/Distributions/Research/]

联系我们 contact @ memedata.com