Skip to content

Try replace wasmi with cranelift#1019

Draft
tomaka wants to merge 4 commits intomainfrom
cranelift
Draft

Try replace wasmi with cranelift#1019
tomaka wants to merge 4 commits intomainfrom
cranelift

Conversation

@tomaka
Copy link
Copy Markdown
Owner

@tomaka tomaka commented Jan 16, 2022

This PR aims at replacing wasmi with cranelift.

Since the wasmtime people are for some reason reluctant to merge #![no_std] PRs, I've cloned the source code in-tree and put #![no_std] support manually. This concerns cranelift-* v0.80.0, regalloc v0.0.33, and wasmparser v0.82.0.

Copy link
Copy Markdown
Contributor

@mergify mergify bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically approving tomaka's pull requests.

@tomaka
Copy link
Copy Markdown
Owner Author

tomaka commented Jan 16, 2022

Should have put wasmparser v0.81, as it is the version used by cranelift v0.80

@tomaka
Copy link
Copy Markdown
Owner Author

tomaka commented Jan 16, 2022

This is probably too ambitious. There's a ton of code to translate, such as https://github.com/bytecodealliance/wasmtime/blob/main/crates/cranelift/src/func_environ.rs, and given that I'm not in any inner circle there's no way I can update my code over time.

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