gh
with a logged in usergit clone
zig repo inzig
jq
,date
, andgit
inPATH
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub export fn _start() void {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const KiB = 1024; | |
const MiB = 1024 * KiB; | |
pub fn main() !void { | |
var buffer: [(10000 / example.len) * example.len]u8 = undefined; | |
const total_bytes = 500000; | |
{ | |
var i: usize = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static zig_E_Zir_Inst_Ref Sema_zirTypeName(zig_S_Sema * const a0, zig_S_Sema_Block * const a1, zig_u32 const a2) { | |
/* file:2:5 */ | |
zig_S_Sema * t0; | |
t0 = a0; | |
zig_S_Sema * const * const t1 = (zig_S_Sema * const * )&t0; | |
zig_S_Sema * const t2 = (*t1); | |
zig_S_Zir * const t3 = (zig_S_Zir * )&t2->code; | |
zig_S_multi_array_list_MultiArrayList_28Zir_Inst_29_Slice * const t4 = (zig_S_multi_array_list_MultiArrayList_28Zir_Inst_29_Slice * )&t3->instructions; | |
zig_S_multi_array_list_MultiArrayList_28Zir_Inst_29_Slice const t5 = (*t4); | |
/* file:2:51 */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn Trace(comptime size: usize, comptime stack_frame_count: usize) type { | |
return struct { | |
addrs: [size][stack_frame_count]usize = undefined, | |
notes: [size][]const u8 = undefined, | |
index: usize = 0, | |
const frames_init = [1]usize{0} ** stack_frame_count; | |
pub noinline fn add(t: *@This(), note: []const u8) void { | |
return addAddr(t, @returnAddress(), note); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type Update struct{} | |
type Handler func(*Update) | |
type Dispatcher struct { | |
handlers []Handler | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
var gpa_instance: std.heap.GeneralPurposeAllocator(.{}) = .{}; | |
const global_allocator = gpa_instance.allocator(); | |
const S = struct { | |
comptime gpa: std.mem.Allocator = global_allocator, | |
x: i32, | |
}; |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0000000000328360 <buildOutputType>: | |
328360: 55 push rbp | |
328361: 48 89 e5 mov rbp,rsp | |
328364: 41 57 push r15 | |
328366: 41 56 push r14 | |
328368: 41 55 push r13 | |
32836a: 41 54 push r12 | |
32836c: 53 push rbx | |
32836d: 48 83 e4 e0 and rsp,0xffffffffffffffe0 | |
328371: 48 81 ec 60 5f 00 00 sub rsp,0x5f60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/Zir.zig | |
+++ b/src/Zir.zig | |
/// Trailing: | |
/// 0. lib_name: u32, // null terminated string index, if has_lib_name is set | |
- /// 1. cc: Ref, // if has_cc is set | |
- /// 2. align: Ref, // if has_align is set | |
- /// 3. return_type: Index // for each ret_body_len | |
- /// 4. body: Index // for each body_len | |
- /// 5. src_locs: Func.SrcLocs // if body_len != 0 | |
- pub const ExtendedFunc = struct { |