【发布时间】:2018-02-25 21:32:45
【问题描述】:
在 Linux 中为 Racket 编程语言 (cross-compile) 工作时是否可以为 Windows 或 Mac OSX 编译? DrRacket IDE 不提供任何此类菜单项。 Raco help 命令也没有显示任何此类选项:
$ raco help make
raco make [ <option> ... ] <file> [<another-file>] ...
where <option> is one of
-j <n> : Compile with up to <n> tasks in parallel
--disable-inline : Disable procedure inlining during compilation
--disable-constant : Disable enforcement of module constants
--no-deps : Compile immediate files without updating dependencies
-p <file>, --prefix <file> : Add elaboration-time prefix file for --no-deps
--no-prim : Do not assume `scheme' bindings at top level for --no-deps
-v : Verbose mode
--vv : Very verbose mode
--help, -h : Show this help
-- : Do not treat any remaining argument as a switch (at this level)
Multiple single-letter switches can be combined after one `-'; for
example: `-h-' is the same as `-h --'
我怀疑这在 Racket 中是不可能的。是否可以使用任何其他 Scheme 或 Lisp 语言?谢谢你的cmets。
【问题讨论】:
-
在撰写本文时(尽管它可能会随着移植到 Chez Scheme 的原因而改变),Racket 字节码是独立于平台的,因此“交叉编译”并不是很有意义。相同的字节码应该适用于任何平台。
-
我的意思是编译成本地机器码。
-
Racket JIT 将字节码编译为本机机器码。
标签: compilation scheme racket