# Using Zig with WebAssembly

**URL:** <https://ziggit.dev/t/using-zig-with-webassembly/3478>\
**Category:** Media\
**Tags:** wasm\
**Created:** [March 6, 2024, 2:07am UTC](https://ziggit.dev/t/using-zig-with-webassembly/3478 "2024-03-06T02:07:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mjg](https://ziggit.dev/user_avatar/ziggit.dev/mjg/32/1897_2.png) [@mjg](https://ziggit.dev/u/mjg)\
**Post date:** [March 6, 2024, 2:07am UTC](https://ziggit.dev/t/using-zig-with-webassembly/3478/1 "2024-03-06T02:07:51Z")

</div>

Hello, I’m quite new to Zig, recently I’ve been playing with using it for WASM and had some (mis)adventures, so I wrote up all the things I learned:

> **[Using Zig with WebAssembly](https://blog.mjgrzymek.com/blog/zigwasm)**
>
> How to send numbers, strings, and arbitrary objects to Zig WASM

If anyone knows

1. What is `__stack_pointer`? (I also asked this on [SO](https://stackoverflow.com/questions/78093023/what-is-stack-pointer-in-zig-wasm))
2. What’s happening to pages 15 and 16 in section Memory?

it would be a help. Thanks!

---

_[View the full topic](https://ziggit.dev/t/using-zig-with-webassembly/3478)._
