aboutsummaryrefslogtreecommitdiff
path: root/Modules.md
diff options
context:
space:
mode:
authorLuke Wagner <luke@mozilla.com>2015-11-09 11:59:17 -0600
committerLuke Wagner <luke@mozilla.com>2015-11-09 12:15:23 -0600
commitc9d9e53362e57d0879df3d6451f51f63b8cd7833 (patch)
treea5d840955d4bbf84e096e22ac982f6a15202de48 /Modules.md
parent86f942e451a6224ce404793cc1fed959edf12ab6 (diff)
downloadnanowasm-design-c9d9e53362e57d0879df3d6451f51f63b8cd7833.tar.gz
Refine linear memory aliasing
Diffstat (limited to 'Modules.md')
-rw-r--r--Modules.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules.md b/Modules.md
index ead86eb..7526f96 100644
--- a/Modules.md
+++ b/Modules.md
@@ -140,6 +140,14 @@ The linear memory section may also contain an optional hint declaring the expect
maximum heap usage. This hint is not semantically visible but can help a
WebAssembly engine to optimize `grow_memory`.
+The linear memory section may optionally declare that the instance's
+linear memory is *externally aliasable*. How linear memory is aliased is up
+to the host environment (as with all module exports). The
+[Web](Web.md#aliasing-linear-memory-from-JS) would reflect exported linear
+memory to JS as an `ArrayBuffer`. The MVP does not currently provide for
+*importing* linear memory though this may be added
+[in the future](FutureFeatures.md#importing-linear-memory).
+
## Code section
The WebAssembly spec defines the code section of a module in terms of an