File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ The script also produces an optimized module using `wasm-opt -O3` from the *bina
37
37
Build options
38
38
-------------
39
39
40
- - ` EXPORT_ALL ` exports functions other than ` cmem_init ` and ` cmem_end ` , including memory and list management functions.
40
+ - ` EXPORT_ALL ` exports the memory and functions other than ` cmem_init ` and ` cmem_end ` , including memory and list management functions.
41
41
- ` PREFIX_LIBC ` prepends ` cmem_ ` to libc function names.
42
42
- ` FIRST_FIT ` employs a first-fit instead of a best-fit strategy for allocation.
43
43
- ` BULK_MEMORY ` enables use of bulk memory instructions, decreasing embedder compatibility.
Original file line number Diff line number Diff line change 46
46
47
47
(module
48
48
49
- (memory (export " memory" ) 1 )
49
+ (memory
50
+ #ifdef EXPORT_ALL
51
+ (export " memory" )
52
+ #endif
53
+ 1 )
54
+
50
55
(global $cmem_begin (mut i32 ) (i32.const 0 ))
51
56
(global $cmem_last (mut i32 ) (i32.const 0 ))
52
57
You can’t perform that action at this time.
0 commit comments