Stream: general

Topic: clif from wasm


view this post on Zulip Anthony Canino (Sep 07 2022 at 12:44):

Hi all,

I am new to the wasmtime repo and was looking to hack around a bit. I saw how to use clif-util to compile and run some cranelift IR. However, is there a way to view the IR that cranelift generates while compiling down a full .wasm file? For example, if I have a program, test.c that I compile to test.wasm with WASI sdk, can I intercept the IR generated when running with wasmtime test.wasm etc? Or, is there a way / tool to take the test.wasm file and get to the cranelift IR that cranelift would use?

Thanks!

view this post on Zulip Anton Kirilov (Sep 07 2022 at 14:57):

You can give clif-util wasm -p a try.

view this post on Zulip Anthony Canino (Sep 08 2022 at 12:32):

That works for me, thanks!


Last updated: Dec 23 2024 at 12:05 UTC