# wasm2c: Add big endian support\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 5cb45b68557e32724cb6a10ead8123a588c5000f

Requested commit: 5cb45b68557e32724cb6a10ead8123a588c5000f

Commit: 5cb45b68557e32724cb6a10ead8123a588c5000f

Tree: 749741a1630707297c86a128e14f63e571f18b09

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
wasm2c: Add big endian support.

I took a slightly unconventional approach to detecting endianness here. We have
no compiler/platform-specific preprocessor checks in the stage1 C code today,
and I think that's a property worth maintaining.

```

## Parents

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

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