与 SBCL 交叉编译

发布于 2024-07-07 13:19:07 字数 110 浏览 8 评论 0原文

我在 Ubuntu 机器上运行 SBCL。 我想编写一个小程序,送给只运行 Windows 的朋友。 在我的机器上将其交叉编译为“独立”Windows 程序(即通常的运行时+核心组合)的最快方法是什么?

I have SBCL running on a Ubuntu machine. I want to write a little program that I want to give to a friend who has only Windows running. What is the quickest way to cross-compile it on my machine into a "standalone" windows program (i.e. the usual runtime+core combination)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦言归人 2024-07-14 13:19:07

SBCL 能够进行交叉编译,但由于在此过程中评估代码,您需要访问目标体系结构。 Christophe Rhodes 在 SBCL:a Sanely-Bootstrappable Common Lisp 中很好地解释了 SBCL 的构建过程

如果您无法直接访问 Windows 计算机,我想您可以尝试一下 Wine(我希望这会失败)或 ReactOS 位于模拟器或虚拟机管理程序(QEMU、HVM、Xen,凡是你能想到的......)中。

SBCL is able to do a cross-compilation, but due to code being evaluated during the process, you need access to the target architecture. SBCL's build processed is well explained by Christophe Rhodes in SBCL: a Sanely-Bootstrappable Common Lisp
.

If you don't have directly access to a Windows machine, I suppose you could give a try to Wine (I would expect this to fail) or ReactOS inside either an emulator or hypervisor (QEMU, HVM, Xen, you name it...).

静谧 2024-07-14 13:19:07

我怀疑在虚拟机上安装 Windows 并在那里编译应用程序将是最快的方法。

I suspect that installing Windows on a VM and compiling your app there would be the quickest way.

憧憬巴黎街头的黎明 2024-07-14 13:19:07

核心特定于平台/版本组合。 使用 Luís 的方法,或者使用不同的 Lisp 进行分发,例如 CLisp。

不同运行时支持程序之间的核心映像绝对不存在二进制兼容性。 即使是在不同时间从相同源构建的运行时也被视为不兼容。 SBCL 手册

Cores are specific to a platform/version combination. Use Luís's method, or distribute with a different Lisp, such as CLisp.

There is absolutely no binary compatibility of core images between different runtime support programs. Even runtimes built from the same sources at different times are treated as incompatible for this purpose. SBCL Manual

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文