-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add steps to use wasm modules with imported memory and imported table
- Loading branch information
Showing
4 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Additional resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Using a Wasm module with imported memory and imported tables | ||
|
||
By default, RLBox operates on Wasm modules with an imported memory and imported | ||
table. This allows RLBox to optimize the memory allocation's alignment for its | ||
internal operations. However, you can also use modules with exported memory and | ||
exported tables (albeit with some performance penalty). | ||
|
||
To do this, adjust the flags during the compilation of your Wasm module to | ||
export memory and tables. Specifically, remove the arguments | ||
`-Wl,--import-memory -Wl,--import-table` if present, and use the arguments | ||
`-Wl,--export-all -Wl,--export-table` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters