mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-24 09:01:02 +00:00
Merge branch 'master' of github.com:NikVolf/wasm-tools
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
use std::slice;
|
use std::slice;
|
||||||
|
|
||||||
#[link_args = "-s WASM=1 -s NO_EXIT_RUNTIME=1 -s NO_FILESYSTEM=1 -s"]
|
#[link_args = "-s WASM=1 -s NO_EXIT_RUNTIME=1 -s NO_FILESYSTEM=1"]
|
||||||
extern {}
|
extern {}
|
||||||
|
|
||||||
/// Wrapper over storage read/write/size externs
|
/// Wrapper over storage read/write/size externs
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ int call(void* descriptor) {
|
|||||||
data += *input_length;
|
data += *input_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* produces the following code (with gas counter)
|
/* produces the following code (with gas counter and call optimization)
|
||||||
(module
|
(module
|
||||||
(type (;0;) (func (param i32) (result i32)))
|
(type (;0;) (func (param i32) (result i32)))
|
||||||
(type (;1;) (func))
|
(type (;1;) (func))
|
||||||
|
|||||||
Reference in New Issue
Block a user