diff options
| author | Luuk de Gram <luuk@degram.dev> | 2021-11-26 20:07:34 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2021-11-27 15:11:03 +0100 |
| commit | 6e88df44a29e0c30c341f113cf4771e08fc1f0fe (patch) | |
| tree | 93f5cab9205d166060d39fda5c38544d093f4bd1 /src/Compilation.zig | |
| parent | a54ac0888542d027b09e5c43729a7cfbe4a51393 (diff) | |
| download | zig-6e88df44a29e0c30c341f113cf4771e08fc1f0fe.tar.gz zig-6e88df44a29e0c30c341f113cf4771e08fc1f0fe.zip | |
wasm-linker: Link into binary during flush
This contains a few additions:
- Proper stack pointer calculation keeping alignment in mind.
- Setting up memory layout (including user flags).
- Export or import memory
- Handle 'easy' linker tasks during incremental compilation, while offloading
heavy-tracking/computation tasks to `flush()`
- This architecture allows us to easily integrate with the rest of 'zwld' to
implement linking stage2 code with external object files.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
