mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
wasm linker: implement missing logic
fix some compilation errors for reworked Emit now that it's actually referenced introduce DataSegment.Id for sorting data both from object files and from the Zcu. introduce optimization: data segment sorting includes a descending sort on reference count so that references to data can be smaller integers leading to better LEB encodings. this optimization is skipped for object files. implement uav address access function which is based on only 1 hash table lookup to find out the offset after sorting.
This commit is contained in:
parent
761387dc55
commit
458f658b42
8 changed files with 622 additions and 253 deletions
Loading…
Add table
Add a link
Reference in a new issue