Erlang OTP版本与HiPE编译? [英] Erlang OTP release compiles with HiPE?

查看:132
本文介绍了Erlang OTP版本与HiPE编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读此问题后, Erlang是群集的C计算世界?,我想知道用HiPE编译的官方Erlang OTP?

After reading this question Is Erlang the C of the clustered computing world? , I am wondering the official Erlang OTP compiles with HiPE?

换句话说,当我编译我的 .erl 源代码与OTP版本R13(例如),它是否产生目标代码BEAM?

In other words, when I compile my .erl source with the OTP release R13 (as example), does it produce "object code" BEAM?

查看 http://www.it.uu.se/research/group/hipe/ ,它是不出现独立的HiPE编译器已经被维护了。

Looking at http://www.it.uu.se/research/group/hipe/ , it does not appear that a standalone HiPE compiler is maintained anymore.

推荐答案

默认情况下,HiPE不用于编译OTP。虽然已知OTP库可以使用HiPE成功编译,通常它会提供一些提升(尽管取决于您的应用程序)。

By default HiPE is not used to compile OTP. Though it is known that OTP libraries can be successfully compiled using HiPE and usually it gives some boost (though it depends on your application).

当您运行 erlc 在您的 .erl 文件中,它生成BEAM文件,而不是编译为HiPE的本机代码。要使用HiPE将 .erl 文件编译为本机代码,只需运行 erlc + native file.erl

When you run a erlc on your .erl file it produces BEAM file, which is NOT compiled to native code witn HiPE. To compile an .erl file to native code using HiPE just run erlc +native file.erl.

独立的HiPE编译器不再被维护,因为它被包含在核心的Erlang / OTP发行版中。

Standalone HiPE compiler is not maintained anymore, since it was included into core Erlang/OTP distribution.

这篇关于Erlang OTP版本与HiPE编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆