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