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

What's the difference between wasmer compile and wasmer create-exe #1729

Closed
Hywan opened this issue Oct 16, 2020 · 1 comment
Closed

What's the difference between wasmer compile and wasmer create-exe #1729

Hywan opened this issue Oct 16, 2020 · 1 comment
Labels
📦 lib-cli About wasmer-cli ❓ question I've a question!

Comments

@Hywan
Copy link
Contributor

Hywan commented Oct 16, 2020

That's a tracking issue. I noticed that wasmer compile says “Compile a WebAssembly binary”, and wasmer create-exe says “Compile a WebAssembly binary into a native executable”. That's confusing. We should either clarify this, or re-design the API :-).

@Hywan Hywan added ❓ question I've a question! 📦 lib-cli About wasmer-cli labels Oct 16, 2020
@syrusakbary
Copy link
Member

syrusakbary commented Oct 16, 2020

@Hywan wasmer create-exe creates an executable that has the VM attached inside, so it can be run directly, without a Wasmer runtime.

wasmer create-exe myfile.wasm -o ./myexe
./myexe # this should not require wasmer, it's also even faster to start since it doesn't require any dlopen/dlsym at runtime (the code is already attached to the binary)
wasmer compile myfile.wasm -o myfile.so --native
wasmer run myfile.so # this requires wasmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 lib-cli About wasmer-cli ❓ question I've a question!
Projects
None yet
Development

No branches or pull requests

2 participants