bytecodealliance / bytecodealliance/wasmtime

Load precompiled module from library loaded by the OS loader?

Open
#7,777 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

#### Feature

Precompiled modules are ELF files that seemingly are able to be linked into executables. Would it be possible to let them load using OS loader (either by linking them into application binary, or linking into shared object and `dlopen`), and then import this code into wasmtime Module?

#### Benefit

Support of platforms that doesn't allow mapping pages as executable, like iOS or game consoles.

#### Implementation

`Module::deserialize` variant that takes pointers to already loaded segments and fills them into `CodeMemory` struct instead of mmaping them. Probably also needs #7349 to be useful.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.