diff options
| author | Luuk de Gram <luuk@degram.dev> | 2021-11-19 22:15:53 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2021-11-21 21:07:55 +0100 |
| commit | ec5220405b0218f892f6a1636ddd04d791017309 (patch) | |
| tree | d69aa5d8c4e876a61da6335d79149e8278194dde /src/Compilation.zig | |
| parent | 460b3d39eae8d294efbe2e5762ea38c93c352d63 (diff) | |
| download | zig-ec5220405b0218f892f6a1636ddd04d791017309.tar.gz zig-ec5220405b0218f892f6a1636ddd04d791017309.zip | |
wasm: Implement optionals and ensure correct alignment
Rather than writing the alignment in its natural form, wasm binaries encode the alignment of types as the exponent of a power of 2.
So rather than performing this encoding during AIR->MIR, we do this while emitting MIR->binary encoding.
This allows us to keep alignment logic to its natural form while doing calculations (Which is what we need during linking as well).
We also implement optionals and pointers to an optional.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
