All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Zig Programming Language Introduces New Elf2 Linker with Improved Performance

By

Retro_Dev

8mo ago· 1 min readenCode

Summary

A new linker called Elf2 has been developed for the Zig programming language, offering significantly improved performance and incremental compilation support. The linker can be enabled via CLI flag or build script configuration, and is already the default when using incremental compilation targeting ELF. Performance improvements are substantial enough that separate build steps for code generation and linking are no longer necessary.

Key quotes

· 4 pulled
The new linker can be used with -fnew-linker in the CLI, or by setting exe.use_new_linker = true in a build script.
It is already the default when passing -fincremental and targeting ELF.
The performance is fast enough that there's no longer much of a benefit to exposing a -Dno-bin build step.
This iteration already has significantly better incremental support.
Snippet from the RSS feed
This iteration already has significantly better incremental support. In fact, this PR also enables every incremental test for x86_64-linux-selfhosted and already passes all of them with this linker...

You might also wanna read