# wasm: Linker \- emit stack pointer · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c18bc08e3c658f50faf7668f8940a11326f3947a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c18bc08e3c658f50faf7668f8940a11326f3947a

Requested commit: c18bc08e3c658f50faf7668f8940a11326f3947a

Commit: c18bc08e3c658f50faf7668f8940a11326f3947a

Tree: 90f40dbeecbcd09c0a96c4aaa716d66496fe5d01

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Linker - emit stack pointer

The self-hosted wasm linker now emits a mutable global.
This entry represents the stack pointer, which has an initial value of offset table size + data size + stack size.
Stack size can either be set by the user, or has the default of a single wasm page (64KiB).

```

## Parents

- [05330bbe0ddd3057a1badea92a7823a2b1f4d68a](https://git.cafe/gitcafe/zig/commit/05330bbe0ddd3057a1badea92a7823a2b1f4d68a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c18bc08e3c658f50faf7668f8940a11326f3947a?format=markdown)
