将 Rebol 代码编译为可执行文件

Compile Rebol code to executable

我从 http://www.rebol.com/downloads.html 下载了 Rebol/View(版本 2.7.8)Linux x86 libc6 2.3 版本,它在 Linux(Debian稳定 9).是否可以将代码编译为可执行文件?我试着检查选项,编译为可执行选项似乎不存在:

$ rebol -v --help
The command line usage is:

    REBOL <options> <script> <arguments>

All fields are optional. Supported options are:

    --cgi (-c)       Check for CGI input
    --do expr        Evaluate expression
    --link url       Connect to Link
    --help (-?)      Display this usage information
    --nowindow (-w)  Do not open a window
    --noinstall (-i) Do not install (Link, View)
    --quiet (-q)     Don't print banners
    --reinstall (+i) Force an install (Link, View)
    --script file    Explicitly specify script
    --secure level   Set security: allow ask throw quit
    --trace (-t)     Enable trace mode
    --uninstall (-u) Uninstall REBOL (Link, View)
    --version tuple  Minimum version of script, when URL (View)
    --noviewtop (-v) Do not start viewtop (view desktop)

Special command line options:

    +q               Force not quiet (Link, View)
    -s               No security
    +s               Full security
    -- args          Provide args without a script

Examples:

    REBOL script.r
    REBOL -s script.r
    REBOL script.r 10:30 test@domain.dom
    REBOL --do "verbose: true" script.r
    REBOL -cswq
    REBOL --cgi --secure throw --script cgi.r "debug: true"
    REBOL --version 1.2.3 http://www.rebol.net/test.r ; view only

我可以在 Linux/Windows 上将 Rebol 代码编译为可执行代码吗?感谢您的帮助。

理论上,Rebol 应该有一个 commercial SDK 可用,它将解释器与您的脚本捆绑到一个文件中,没有本地编译器。

Red 使用 Rebol 为所有支持的平台(Windows、Linux、Mac、Android 等)编译 Red 和 Red/System,甚至交叉编译.编译器包含在稳定构建和自动构建中。如何编译见README also RedEd

Rebol/View 可以使用 Rebol Technologies 提供的名为 Encap 的产品与解释器一起打包。我不知道他们是否还卖这个,或者即使公司还存在。

据我所知,Red 是具有增强 GUI 的 Rebol 2 克隆,可以编译为二进制文件。

Ren-c 是 Rebol3 的衍生产品,可以从 C 源代码编译,因此您可以编译任何您想要的代码。但是,目前没有GUI支持,虽然有一个分支计划添加这个。