编程与软件工程fabiensanglard.net
让我们像 1992 年那样编译(2014)
Let's compile like it's 1992 (2014)
2014 — 2024,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
Fabien Sanglard 的这篇文章记录了如何用 1992 年的工具链(如 Borland/Turbo C 编译器)来编译那个年代的老游戏代码,重现当年的开发环境与编译体验。文章体现了他对复古游戏源码和旧式图形技术的深入研究。
为什么经久不衰:它把复古计算、老游戏源码考古和编译器历史结合在一起,对想理解早期 PC 游戏如何构建的开发者来说始终有参考价值。
HN 评论精选
称赞作者在复古游戏代码研究上的深厚功力与热情
不得不佩服 Fabien,他不仅是位理解代码和图形例程能力惊人的优秀开发者,对研究早年老游戏的执着也无人能及。干得漂亮,Fabien!
zak_mc_kracken查看英文原文
Have to hand it out to Fabien, he's not just an amazing developer with baffling skills to understand code and graphical routines, his dedication to understanding old games of yore is second to none. Nice job, Fabien!
感慨老游戏源码保存不易,肯定将其公开的价值
很高兴他们把代码放进了公有领域。那个时代还有上千款游戏的代码可能就此消失,尽管它们只是可以完美永久保存的比特和字节。
hayksaakian查看英文原文
Its nice that they made it public domain. There are 1000 more games from that era whose code will simply dissapear despite being simply bits and bytes that may be perfectly preserved for ever.
补充一个现代代码用古老编译器编译的类似案例
类似地,这里有一个用 Turbo C 1.0 编译 Lua 5.2 的视频(2013 年写的软件能在 1990 年的编译器上不加修改地编译通过,很了不起!)
haberman查看英文原文
In a similar vein, here is Lua 5.2 being compiled with Turbo C 1.0 (impressive that software written in 2013 compiles unmodified on a 1990 compiler!) https://www.youtube.com/watch?v=-jvLY5pUwic
回忆 Borland IDE 的辉煌与后来被 Visual Studio 超越的原因
Borland 3.1 还带图形化 IDE,一度领先于微软基于字符界面的 Programmer's Workbench。我们公司一直用到 Borland 4.5,后来因为编译器在 DLL 中调用 new 时生成会 GPF 的代码、全局变量莫名未定义等问题而放弃,而且 Borland 无法单步调试 32 位代码,Visual Studio 6 却可以。
GnarfGnarf查看英文原文
Borland 3.1 also came as a graphical IDE. For a while Borland was ahead of Microsoft's character-based Programmer's Workbench. Borland had a great IDE. My company stuck with Borland until 4.5. We parted ways when the compiler generated code that GPF'ed when calling 'new' in a DLL, or declared some global variables undefined that had successfully compiled a few modules earlier. Also, Borland couldn't step through 32-bit code in debug mode. Visual Studio 6 could.
历次讨论
同类还值得读
开源应用架构
The Architecture of Open Source Applications
《开源软件架构》(AOSA)是一本在线免费书,邀请知名开源项目的作者亲自剖析其内部设计,涵盖 SQLAlchemy、LLVM、Audacity、Apache、Bash 等系统。
编程与软件工程上首页 9 次 · 2011–2024aosabook.org编辑精选编程语言简史:简短、不完整且多半错误
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
一篇以戏谑、故意不准确的方式回顾编程语言史的博客文章,用夸张轶事和讽刺定义串起 Lisp、C、C++、Java、JavaScript、PHP 等语言。
编程与软件工程上首页 8 次 · 2009–2021james-iry.blogspot.comSQLite 是如何测试的
How SQLite is tested
SQLite 官方文档页,系统介绍 SQLite 的测试体系:多种测试方法(TCL 测试、模糊测试、回归测试、静态分析等)和海量测试用例,展示了这个小型开源项目如何靠极致测试获得…
编程与软件工程上首页 8 次 · 2009–2025sqlite.org编辑精选高级编程语言(2009)
Advanced programming languages (2009)
Matt Might 的经典文章,按用途推荐“高级编程语言”:如果追求就业就选主流语言,如果追求表达力、学术研究或创业,则推荐 Haskell、OCaml、Scala 等函数式语…
编程与软件工程上首页 8 次 · 2009–2022matt.might.net我的 Forth 与栈机器经历
Yosefk - My history with Forth & stack machines
作者以亲身经历回顾了使用 Forth 语言和栈式机器的历程:既赞叹其简洁优雅、代码量小、可自举的优点,也坦率指出栈操作在实际编程中的痛苦,以及 Forth 社区文化中的问题。
编程与软件工程上首页 8 次 · 2010–2024yosefk.com编辑精选