From fd3c186f136dc37cfae87d5f302c631a39428b6d Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Mon, 12 Feb 2024 10:35:52 -0800 Subject: [PATCH] wasm2c/README.md: update to reflect new compile command post-#2308 (#2390) --- wasm2c/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wasm2c/README.md b/wasm2c/README.md index 9cdbdc275..f928ae408 100644 --- a/wasm2c/README.md +++ b/wasm2c/README.md @@ -109,11 +109,11 @@ int main(int argc, char** argv) { ## Compiling the wasm2c output To compile the executable, we need to use `main.c` and the generated `fac.c`. -We'll also include `wasm-rt-impl.c` which has implementations of the various +We'll also include `wasm-rt-impl.c` and `wasm-rt-mem-impl.c`, which have implementations of the various `wasm_rt_*` functions used by `fac.c` and `fac.h`. ```sh -$ cc -o fac main.c fac.c wasm-rt-impl.c +$ cc -o fac main.c fac.c wasm2c/wasm-rt-impl.c wasm2c/wasm-rt-mem-impl.c -Iwasm2c -lm ``` A note on compiling with optimization: wasm2c relies on certain