Hasty Briefsbeta

Bilingual

Bold : A Drop-In Replacement For Apple System Linker Written In Zig

a year ago
  • #Zig
  • #linker
  • #performance
  • Bold is a drop-in replacement for Apple's system linker ld, written fully in Zig.
  • It is on par with LLVM lld linker, faster than the legacy Apple ld linker, but slower than the rewritten Apple ld linker.
  • Benchmark results show bold is 2.23 times slower than the rewritten Apple ld linker but 2.38 times faster than LLVM lld linker.
  • Bold can be used with clang via -fuse-ld=bold or with gcc via -B/path/to/bold.
  • To build bold, you need Zig 0.14.0 and can compile it with 'zig build -Doptimize=ReleaseFast'.
  • Unit and end-to-end tests can be run with 'zig build test'.
  • Contributions to the repository are welcome.