From c9d9e53362e57d0879df3d6451f51f63b8cd7833 Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Mon, 9 Nov 2015 11:59:17 -0600 Subject: Refine linear memory aliasing --- Modules.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Modules.md') 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 -- cgit v1.2.3