-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing debug information #350
Comments
Is it possible you're running into llvm/llvm-project#55781? |
Do you have |
Thanks for sharing this issue. I believe it's the reason why debug information is missing. |
Yes, I got wasm-opt in my path. |
We really need to fix that issue. In the meantime, how do you feel about closing this one to avoid duplicates? |
Sure, I appreciate your help and will close this issue. |
Hi,
I use wasi-sdk to compile a simple c program and use objdump to print the .wasm file information. I found that when using -O0 as the optimization level, the debug information can be seen. However, when using -O2 as the optimization level, the debug information would be lost.
Here is the simple c program:
I use the following command to compile:
/wasi-sdk-20.0/bin/clang --sysroot /wasi-sdk-20.0/share/wasi-sysroot helloworld.c -g -O2 -o hello.wasm
I use the following command to dump the .wasm file:
llvm-objdump -S -l hello.wasm
The result doesn't show any debug information.
The text was updated successfully, but these errors were encountered: