如何使用 perl 6 创建独立的可执行文件?

编程入门 行业动态 更新时间:2024-10-28 15:20:06
本文介绍了如何使用 perl 6 创建独立的可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

旧的 Perl 6 常见问题 说:Rakudo,一个基于 Parrot 的 Perl 6 编译器,允许编译为字节码,并且存在一个小包装器,可以将字节码文件打包并复制到单个可执行文件中."

The OLD Perl 6 faq said: "Rakudo, a Perl 6 compiler based on Parrot, allows compilation to bytecode, and a small wrapper exists that can pack up a bytecode file and parrot into a single executable."

因此,可以创建一个独立的可执行文件,但我找不到任何文档来解释如何进行此操作,或者是否仍然可能.所以,我转向你.将 Perl 6 代码转换为可在未安装 Perl 6 的系统上运行的独立可执行文件需要哪些适当的咒语?

So, it was possible to create a stand-alone executable, but I can not find any docs explaining how to go about this, or if it's still possible. So, I turn to you. What is the appropriate set of incantations required to convert Perl 6 code into a stand-alone executable that will work on a system that does not have Perl 6 installed.

推荐答案

这在 MoarVM 上的当前 Rakudo 中是不可能的.关于模块加载和自动编译还有一些需要解决的问题,但是一旦发生这种情况,如果有足够的需求,我认为没有理由不能重新引入此功能.

This is not possible with current Rakudo on MoarVM. There's still some dust that needs to settle regarding module loading and automatic compilation, but once that has happened, I see no reason why this ability couldn't be reintroduced if there is sufficient demand.

更多推荐

如何使用 perl 6 创建独立的可执行文件?

本文发布于:2023-11-15 12:15:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1594345.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   可执行文件   独立   perl

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!