开发者

How to compile scheme into native binary files?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜