Skip to content
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

NativeAOT-LLVM: Wasm separate DWARF debug to different file #2264

Draft
wants to merge 5 commits into
base: feature/NativeAOT-LLVM
Choose a base branch
from

Conversation

yowl
Copy link
Contributor

@yowl yowl commented Apr 22, 2023

This PR utilises gseparate-dwarf to move the DWARF metadata to a separate file to reduce the main wasm size.

Debugging still works

image

@jkotas jkotas added the area-NativeAOT-LLVM LLVM generation for Native AOT compilation (including Web Assembly) label Jun 20, 2023
@yowl
Copy link
Contributor Author

yowl commented Apr 28, 2024

With this we dont gain much:

HelloWasm debug, not split 28,545 KB, split 26,081 + 2,352 (dwp)
HelloWasm release not split 10,647 KB, split 8,826 + 1,578 (dwp)

Investigate llvm/llvm-project#55538 and what is required to strip all DI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NativeAOT-LLVM LLVM generation for Native AOT compilation (including Web Assembly)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants