0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/Build
Alex Rønne Petersen 68d86c9d45
std.Target: add a bunch more mips Arch tags
A tag with "f32" assumes 32-bit wide floating point registers, while "f64"
assumes 64-bit wide. Absence of either "f32" or "f64" means that the target is
FPR width agnostic (O32) or the width is 64-bit by definition (R6, N64/N32).

Tags with "n8" use IEEE 754-2008 NaN encoding. Similar to FPR width, it is
omitted on tags that use 2008 encoding by definition (R6).

Tags with "r6" need to exist because R6 is effectively an incompatible ISA; it
re-encodes some of the instruction encoding space from earlier revisions.

To be clear, as ridiculous as this is, the list of new tags here *is* already
the curated list; the full list of tags that are architecturally valid is even
longer, but I deliberately left out those that would have no realistic use. Even
with that, we'll have to add more tags later for microMIPS and nanoMIPS...

I expect https://github.com/ziglang/zig/issues/21507 to make all of this less
painful once implemented.

On the plus side, we can now fully determine the float ABI and standard dynamic
linker path from the target triple for all supported targets. Besides just being
nicer, this also means we no longer have a chicken-and-egg problem in target
resolution when we want the ABI to affect default CPU features.

closes https://codeberg.org/ziglang/zig/issues/31325
History 2026-11-11 02:03:15 +01:00
..
Cache std.Build.Cache.DepTokenizer: slightly modernize 2026-09-16 13:12:47 -07:00
Step Update usages of std.fmt.allocPrint* to use the corresponding methods on std.mem.Allocator 2026-11-07 15:10:50 -08:00
abi.zig Replace packed with bitpack internally 2026-11-06 20:14:04 -08:00
Cache.zig Replace packed with bitpack internally 2026-11-06 20:14:04 -08:00
Configuration.zig std.Target: add a bunch more mips Arch tags 2026-11-11 02:03:15 +01:00
Module.zig compiler: add support for patchable functions 2026-09-16 19:21:21 +02:00
Serialize.zig Maker.Step.Run: we're gonna need a bigger timeout 2026-11-02 02:01:07 -05:00
Step.zig std.Build: lazy dependencies can associate with steps 2026-10-15 16:00:57 -07:00