# stage2/wasm: implement basic container generation · gitcafe/zig

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

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

Visibility: public

Requested revision: 3370b5f1097d0610048e29b322b4cbf81ff0a431

Requested commit: 3370b5f1097d0610048e29b322b4cbf81ff0a431

Commit: 3370b5f1097d0610048e29b322b4cbf81ff0a431

Tree: 5e21fa0c927c13619d9e7a128eccaf8b3f5bba80

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
stage2/wasm: implement basic container generation

Thus far, we only generate the type, function, export, and code
sections. These are sufficient to generate and export simple functions.

Codegen is currently hardcoded to `i32.const 42`, the main goal of this
commit is to create infrastructure for the container format which will
work with incremental compilation.

```

## Parents

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

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