如何将方案编译为本机二进制文件?
我对计划很陌生。现在我正在尝试将一些方案代码编译成二进制文件,该文件将更快地加载到解释器中。 (解释器是一种混合解释器)有人告诉我,我可以将代码编译为本机二进制文件,然后将其加载到解释器中。我的问题是:
- 什么是本机二进制文件?
- 如何将方案代码编译为本机二进制文件?
- 如何将本机二进制文件加载到方案解释器中?
提前致谢。
乔
建议我想将以下代码编译为本机二进制文件:
(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:
- What is the native binary file?
- How can I compile the scheme code into a native binary file?
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅有关 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.
这取决于您特定的方案实施。
这取决于您特定的方案实施。
这取决于您特定的方案实施。
That depends on your particular Scheme implementation.
That depends on your particular Scheme implementation.
That depends on your particular Scheme implementation.