19 ms·
> I am sure Walter knows how to compile on one machine, then go to another machine and do the linking or whatever is needed. Historically, you would or at leas
by wyldfire 2y ago
> I am sure Walter knows how to compile on one machine, then go to another machine and do the linking or whatever is needed.
Historically, you would or at least could get your compiler and linker from different vendors -- assembler, disassembler and other tools too. So it's normal/common for C compilers like gcc, clang, dmd to not be distributed like Zig is.
But I would dare say that the way Zig is doing it is a great model for others.
> go to another machine and do the linking
BTW - if you use something like debian/ubuntu for development, they have compilers+linkers+binutils for several different architectures available to make cross-building without Zig at least a little bit easier.
- kubkon 2y agoFYI, Zig is in the process of dropping dependence on lld on Linux and Windows; macOS uses Zig's own linker since roughly 2021 as far as I recall. Tracking issue for reference: https://github.com/ziglang/zig/issues/8726 https://github.com/ziglang/zig/issues/8726