top | item 44220088 (no title) treeshateorcs | 8 months ago so, a helloworld program (`zig init`) is 9.3MB compiled. compared to `-Doptimize=ReleaseSmall` 7.6KB that is huge (more than 1000 times larger) discuss order hn newest AndyKelley|8 months ago Indeed, good observation. Another observation is that 82% of that is debug info.-OReleaseSmall -fno-strip produces a 580K executable, while -ODebug -fstrip produces a 1.4M executable.zig's x86 backend makes for a significantly better debugging experience with this zig-aware lldb fork: https://github.com/ziglang/zig/wiki/LLDB-for-ZigI don't recall whether it supports stepping through comptime logic at the moment; that was something we discussed recently. treeshateorcs|8 months ago is it naive to expect the new backend to release -OReleaseSmall binaries as small as llvm in the future? load replies (1) 9d|8 months ago [deleted]
AndyKelley|8 months ago Indeed, good observation. Another observation is that 82% of that is debug info.-OReleaseSmall -fno-strip produces a 580K executable, while -ODebug -fstrip produces a 1.4M executable.zig's x86 backend makes for a significantly better debugging experience with this zig-aware lldb fork: https://github.com/ziglang/zig/wiki/LLDB-for-ZigI don't recall whether it supports stepping through comptime logic at the moment; that was something we discussed recently. treeshateorcs|8 months ago is it naive to expect the new backend to release -OReleaseSmall binaries as small as llvm in the future? load replies (1) 9d|8 months ago [deleted]
treeshateorcs|8 months ago is it naive to expect the new backend to release -OReleaseSmall binaries as small as llvm in the future? load replies (1)
AndyKelley|8 months ago
-OReleaseSmall -fno-strip produces a 580K executable, while -ODebug -fstrip produces a 1.4M executable.
zig's x86 backend makes for a significantly better debugging experience with this zig-aware lldb fork: https://github.com/ziglang/zig/wiki/LLDB-for-Zig
I don't recall whether it supports stepping through comptime logic at the moment; that was something we discussed recently.
treeshateorcs|8 months ago
9d|8 months ago
[deleted]