-
For example, if I serialize a module using a C API on Linux and save it to a file, can this file be sent to Android and iOS clients and executed on these clients using a headless library? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @stereoF! If by serialized module you mean the output from Also, please note that due to Apple's code execution policy, modules can not be compiled on iOS; the only option available on iOS is interpreting the WASM code. Wasmer supports this today via the WAMR backend. |
Beta Was this translation helpful? Give feedback.
-
@xdoardo After uncomment target_ios script in build.rs: this error raise: --- stderr |
Beta Was this translation helpful? Give feedback.
Hi @stereoF! If by serialized module you mean the output from
wasmer compile
, then no, the format is highly platform-dependent, and is runnable only on the machine that generated it, or machines sharing the same architecture and having at least the same CPU instruction set extensions. This means a compiled module generated on one amd64 linux machine may not run on another amd64 linux machine, much less different platforms.Also, please note that due to Apple's code execution policy, modules can not be compiled on iOS; the only option available on iOS is interpreting the WASM code. Wasmer supports this today via the WAMR backend.