如何将方案编译为本机二进制文件?

发布于 2024-10-10 09:56:44 字数 365 浏览 1 评论 0原文

我对计划很陌生。现在我正在尝试将一些方案代码编译成二进制文件,该文件将更快地加载到解释器中。 (解释器是一种混合解释器)有人告诉我,我可以将代码编译为本机二进制文件,然后将其加载到解释器中。我的问题是:

  1. 什么是本机二进制文件?
  2. 如何将方案代码编译为本机二进制文件?
  3. 如何将本机二进制文件加载到方案解释器中?

提前致谢。

建议我想将以下代码编译为本机二进制文件:

(define test (lambda() (display "this is a test"))

然后将二进制文件加载到解释器中并调用函数“test”。

I am very new to scheme. And now I am trying to compile some scheme code into binary file which will be loaded faster into interpreter. (The interpreter is a hybrid interpreter)Some one told me that I can compile the code into native binary file and then load it into interpreter. And my question is:

  1. What is the native binary file?
  2. How can I compile the scheme code into a native binary file?
  3. How can I load native binary file into scheme interpreter?

Thanks in advance.

Joe

Suggested that I want to compile below code into native binary file:

(define test (lambda() (display "this is a test"))

And then load the bianry file into interpreter and call the function "test".

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

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

发布评论

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

评论(2

偏爱你一生 2024-10-17 09:56:44

请参阅有关 FASL 从几天前开始。

某些方案可以输出数据的快速加载二进制表示形式,而不是纯文本表示形式,但这取决于您的方案是否具有此功能。

See this question about FASLs from a couple days ago.

Some Schemes can output a FASt-Loading binary representation of data rather than a plain-text representation, but it depends on whether your Scheme even has this feature.

凑诗 2024-10-17 09:56:44

什么是本机二进制文件?

这取决于您特定的方案实施。

如何将方案代码编译为本机二进制文件?

这取决于您特定的方案实施。

如何将本机二进制文件加载到方案解释器中?

这取决于您特定的方案实施。

What is the native binary file?

That depends on your particular Scheme implementation.

How can I compile the scheme code into a native binary file?

That depends on your particular Scheme implementation.

How can I load native binary file into scheme interpreter?

That depends on your particular Scheme implementation.

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