Content deleted Content added
Allocators in Zig tend to be passed around by value, rather than by pointer. Additionally, the package manager can also fetch packages from git repos, using the git+https protocol, and Zig packages do not actually need to have any Zig code. |
XtexChooser (talk | contribs) m →Compiler: add about default backend |
||
Line 105:
Zig uses [[LLVM]] (written in C++) as a backend for optimization. Since version 0.10 the Zig compiler is written in the Zig programming language, i.e., it is a [[self-hosting compiler]]. The self-hosted linker is tightly coupled with the self-hosted compiler.
The LLVM backend is the default for most targets, except for [[Standard Portable Intermediate Representation|SPIR-V]]. Zig also supports their self-hosted backend which can be enabled by using <code>-fno-llvm</code>.
==Packages==
|