diff options
| author | Timon Kruiper <timonkruiper@gmail.com> | 2021-01-04 01:08:37 +0100 |
|---|---|---|
| committer | Timon Kruiper <timonkruiper@gmail.com> | 2021-01-06 10:52:07 +0100 |
| commit | 70f6d16ae2d2d9bf8690742c7eba2798b5395174 (patch) | |
| tree | cfd702d3a961fc70c4c6b73bb207776cd6338fe2 /lib | |
| parent | 6c4924408b1957d493568271a0158b1190574dd0 (diff) | |
| download | zig-70f6d16ae2d2d9bf8690742c7eba2798b5395174.tar.gz zig-70f6d16ae2d2d9bf8690742c7eba2798b5395174.zip | |
stage2: add initial impl for generating global decls in LLVM backend
Also adds support for extern functions, simple pointer and simple array
types and values.
A simple hello world now compiles:
`zig build-exe example.zig -fLLVM -lc`
```
extern fn puts(s: [*:0]const u8) c_int;
export fn main() c_int {
_ = puts("hello world!");
return 0;
}
```
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
