mirror of
https://github.com/fluencelabs/wasm-utils
synced 2025-05-06 20:22:18 +00:00
add comment about 48kb
This commit is contained in:
parent
e2b8c9431f
commit
32a2d19f3a
@ -133,6 +133,7 @@ fn main() {
|
||||
}
|
||||
|
||||
if let source::SourceTarget::Unknown = source_input.target() {
|
||||
// 49152 is 48kb!
|
||||
let stack_size: u32 = matches.value_of("shrink_stack").unwrap_or_else(|| "49152").parse().expect("New stack size is not valid u32");
|
||||
assert!(stack_size <= 1024*1024);
|
||||
let (new_module, new_stack_top) = shrink_unknown_stack(module, 1024 * 1024 - stack_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user