Compiler
moduleThis directory maintains the implementation of the Julia compiler.
Through a bootstrapping process, it is bundled into the Julia runtime as Base.Compiler
.
You can also use this Compiler
module as the Compiler
standard library by following the steps below.
To utilize this Compiler.jl
standard library, you need to declare it as a dependency in
your Project.toml
as follows:
Project.toml
[deps]
Compiler = "807dbc54-b67e-4c79-8afb-eafe4df6f2e1"
[compat]
Compiler = "0.1"
With the setup above, the special placeholder version (v0.1) will be installed by default.[^1]
[^1]: Currently, only version v0.1 is registered in the General registry.
If needed, you can switch to a custom implementation of the Compiler
module by running
pkg> dev /path/to/Compiler.jl # to use a local implementation
or
pkg> add https://url/of/Compiler/branch # to use a remote implementation
This feature is particularly useful for developing or experimenting with alternative compiler implementations.
[!note] The Compiler.jl standard library is available starting from Julia v1.10. However, switching to a custom compiler implementation is supported only from Julia v1.12 onwards.
[!warning] When using a custom, non-
Base
version ofCompiler
implementation, it may be necessary to runInteractiveUtils.@activate Compiler
to ensure proper functionality of certain reflection utilities.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。