Skip to content

wasm-merge tool#919

Merged
kripken merged 49 commits into
masterfrom
wasm-merge
Apr 17, 2017
Merged

wasm-merge tool#919
kripken merged 49 commits into
masterfrom
wasm-merge

Conversation

@kripken

@kripken kripken commented Feb 20, 2017

Copy link
Copy Markdown
Member

This adds a new tool, wasm-merge. It merges the inputs in a simple way into a single output, just making sure they don't trample over each other, so colliding internal function names are fixed up, etc.

This doesn't do any real linking - no relocations, aliases, individual static allocations, etc. - hence the name "merge" and not "link". It is meant to help with debugging in the same way that llvm-link does in llvm (but with an even more limited set of uses).

Perhaps it makes sense to share code with the wasm-linker functionality? That supports general linking and is tied to s2wasm, so I didn't see a natural way and started out with separate code, but let me know if there's a better way.

@kripken

kripken commented Feb 20, 2017

Copy link
Copy Markdown
Member Author

This depends on #917 and #918.

@kripken

kripken commented Mar 21, 2017

Copy link
Copy Markdown
Member Author

This has been refactored a lot, and is hopefully in nice-enough shape to look at more closely. In particular we were discussing using this as a basis for more linking stuff, so let me know how that looks.

@kripken

kripken commented Apr 17, 2017

Copy link
Copy Markdown
Member Author

Merging, there seem to be no concerns here, and this functionality would have been useful in a recent emscripten mailing list discussion where someone was trying various linking mechanisms.

@kripken kripken merged commit 2e210c1 into master Apr 17, 2017
@kripken kripken deleted the wasm-merge branch April 17, 2017 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant