1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
(module
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(import "env" "memory" (memory $0 256))
(import "env" "table" (table 0 funcref))
(import "env" "foo" (func $b-foo))
(export "bar" (func $bar-func))
(global $b-global f64 (f64.const 2.14281428))
(export "bglobal" (global $b-global))
(import "env" "aglobal" (global $a-global i32))
(func $b
(call $b-foo)
)
(func $bar-func
(drop (f64.const 3.14159))
(drop (global.get $a-global))
(drop (global.get $b-global))
)
)
|