From fa877317e0cd0dbdd7031152d6279d483f797580 Mon Sep 17 00:00:00 2001 From: harveyghq Date: Fri, 5 Jul 2024 09:10:45 +0000 Subject: [PATCH] chore: add clean.sh, rm build-rs.sh --- README.md | 2 + build-rs.sh | 106 ---------------------------------------------------- clean.sh | 50 +++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 106 deletions(-) delete mode 100755 build-rs.sh create mode 100755 clean.sh diff --git a/README.md b/README.md index a9690b06..302b0293 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ If successful, a success message will be displayed, typically **after several se Sample Wasm binaries, including "Hello World" in C, Go, and Rust, are provided in the folder. These can be compiled from their respective source languages; the compilation processes are detailed in [WASI tutorial](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-tutorial.md#compiling-to-wasi) (C and Rust), and [WASI "Hello World" example](https://wasmbyexample.dev/examples/wasi-hello-world/wasi-hello-world.go.en-us.html) (Go). +For Rust and C++ project, you can use `wasm-tools` to demangle symbol names in the `name` section. Install with `cargo install wasm-tools`. Confirm by `wasm-tools --version`. Details can be found at [Wasm Tools](https://github.com/bytecodealliance/wasm-tools). + ## Analyze This section demonstrates how to use SeeWasm to analyze a generated WebAssembly file. diff --git a/build-rs.sh b/build-rs.sh deleted file mode 100755 index 48ecb02d..00000000 --- a/build-rs.sh +++ /dev/null @@ -1,106 +0,0 @@ -#!/usr/bin/env bash -# build-rs: compile and demangle Wasm for Rust source programs - -error() { - command printf '\033[1;31mError\033[0m: %s\n\n' "$1" 1>&2 -} - -usage() { - cat >&2 <&2 +} + +usage() { + cat >&2 <