BreadTom
d407c4e52b
Update wasm2c.c
2025-07-25 02:10:09 -07:00
Alex Rønne Petersen
35e804bfb8
wasm2c: Implement nontrapping_fptoint support.
2025-01-22 20:56:30 +01:00
Alex Rønne Petersen
c2e6be97ff
wasm2c: Add an optional endianness command line argument.
...
If not given, endianness is inferred from the target that wasm2c is built for.
2024-10-26 22:00:09 +02:00
Alex Rønne Petersen
5cb45b6855
wasm2c: Add big endian support.
...
I took a slightly unconventional approach to detecting endianness here. We have
no compiler/platform-specific preprocessor checks in the stage1 C code today,
and I think that's a property worth maintaining.
2024-10-26 22:00:09 +02:00
Jacob Young
c011abc4dd
wasm2c: fix allocation failure result
2024-03-23 11:32:37 +01:00
cdrmack
d3cf911a80
remove unused local variables
2024-02-09 23:11:46 +02:00
Jacob Young
6966fb8ca5
wasm2c: reuse locals
...
* Reduce stack usage of a -O0 build of zig1 by 33%.
* Avoid compiler builtin calls.
2022-12-09 03:45:29 -05:00
Jacob Young
3683602226
wasm2c: improve amortized speed of memory.grow
2022-12-06 12:27:28 -07:00
Jacob Young
5dbd28f171
wasm2c: support memory.copy with overlapping buffers
2022-12-06 12:15:05 -07:00
Jacob Young
9f4ef4de23
wasm2c: remove unnecessary brackets to reduce max bracket depth
...
This avoids the need to pass `-fbracket-depth=512` to clang.
2022-12-06 12:15:04 -07:00
Jacob Young
ce4e5fee63
wasm2c: avoid aliasing issues on memory access
2022-12-06 12:15:04 -07:00
Jacob Young
1263346774
use zig-wasm2c for bootstrapping
2022-12-06 12:15:04 -07:00