wasm2.c ──────►┌──────┐ ┌──────┐ ┌────┐ ┌──────┐ ┌────┐ ┌────┐ ┌────┐
│wasm2c│──►│zig1.c│──►│zig1│──►│zig2.c│──►│zig2│──►│zig3│──►│zig4│
┌───►└──────┘ ┌►└──────┘┌─►└────┘ └──────┘┌─►└────┘ └────┘ └────┘
│ zig1.wasm ─┘ │ │ ▲ ▲ ▲
CC ───────┴───────────────────────┴───────────────────┘ │ binary-identical
│
idealized, see TODO: │(optional)
used LLVM libs ─────────────────────►┌────┐ │
│LLVM│─────────────────┘
CXX ────────────────────────────────►└────┘
CC = host c compiler: clang/gcc/msvcc/tcc or zig cc build with zig-bootstrap(clang)
CXX = host c++ compiler: clang++/g++/msvcc or zig c++ build with zig-bootstrap(clang++)
Created
January 22, 2023 01:39
-
-
Save matu3ba/8ac61b3325ca38b87d026668140326e2 to your computer and use it in GitHub Desktop.
Bootstep Zig from wasm file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment