Hi!
I've been looking to dissassemble .cwasm files generated by wasmtime compile. I can't seem to figure it out. Does anyone have a quick way to do so? I've tried various tools like objdump and wasm-objdump
Thanks
the *.cwasm
output is an ELF file so you can pass it to objdump
. Note though that we'd prefer if you don't rely on the particulars of the format, but for debugging that's what I do, pass it to objdump
I've tried objdump -d
but I get the following error file format elf64-x86-64
objdump: error: can't find target: unable to get target for 'x86_64--', see --version and --triple.
I'm also compiling for my current platform wasmtime compile <file>
what platform are you on?
if you have llvm-objdump
available that may work better
Ha, actually I figured it out, my objdump was not the system /usr/bin
objdump it was the wasi-sdk objdump which is missing all the formats. Using the /usr/bin/objdump
works :)
Thanks, though! Appreciate the help :)
Alan Wang has marked this topic as resolved.
Last updated: Nov 22 2024 at 17:03 UTC