# wasm: Implement codegen for C-ABI · gitcafe/zig

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

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

Visibility: public

Requested revision: 5f2d0d414dc44af7bda0e8d805d038e8f1a6f9d3

Requested commit: 5f2d0d414dc44af7bda0e8d805d038e8f1a6f9d3

Commit: 5f2d0d414dc44af7bda0e8d805d038e8f1a6f9d3

Tree: 713e23b0b8d18270596ea043ac0a136a18561a98

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Implement codegen for C-ABI

This implements passing arguments and storing return values correctly
for the C-ABI as specified by the tool-convention:
https://github.com/WebAssembly/tool-conventions/blob/main/BasicCABI.md

There's definitely room for better codegen in follow-up commits.

```

## Parents

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

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