开发者

How to compile scheme into native binary files?

开发者 https://www.devze.com 2023-02-02 18:57 出处:网络
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

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开发者_StackOverflow社区 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".


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号