Earlier quoted context omitted.
Gold is much better than a 30% speedup IME. I went from >60 seconds per (config x arch x platform x near-leaf binary) combination with bfd, to 6x faster / Additionally, I'll note that gold's incremental linking is in-place binary patching, from what I can tell, and potentially another order-of-magnitude speedup even on your existing C projects - slide 11+ certainly appears to be describing such, and the caveats + res…
Have you tried LLD; LLD beat the crap out of Gold IME.
Zig's New Relationship with LLVM
291–295 of 295 posts
Re: Zig's New Relationship with LLVM
#292Earlier quoted context omitted.
You are correct, that's still a WIP, but the goal is to have "safe Zig" (i.e. Zig with safety checks on) catch all undefined behaviour modulo explicitly marked unsafe casts (which correspond to unsafe Rust code).
By "catch", do you mean at compile time?
Re: Zig's New Relationship with LLVM
#293Earlier quoted context omitted.
Yeah rather than supporting backporting things like that they instead decided that every feature should have a lint that shows you how to update your edition. Basically the idea was rather than making it as easy as possible to stay on the oldest version they focused that effort on making it as easy as possible to update once you decided that was what you wanted to do.
We do backport all kinds of things, and we also the vast majority of things land on all editions. This one is tricky for a few reasons that don't apply to most things.
Especially after NLL landed on 2015 ><
Re: Zig's New Relationship with LLVM
#294Earlier quoted context omitted.
We do backport all kinds of things, and we also the vast majority of things land on all editions. This one is tricky for a few reasons that don't apply to most things.
Fair sorry to paint too broad a stroke. Should have made the fact that I was implying "everything" there... Especially after NLL landed on 2015 ><
Re: Zig's New Relationship with LLVM
#295I’ve often wanted to try out Zig at work but the dependency on the latest LLVM meant doing that first. Building LLVM from scratch on our platform takes more resources (including time) than I normally have available (LLDB needs like 6GB of RAM to link?) So, I welcome this news!
Even if your build system isn't set up for it, you could potentially do a cross-compiled build for just LLVM your target architecture, then just rely on those binaries?