You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
505 B

.globl bar
bar:
.functype bar () -> (i64)
i64.const 1
end_function
.globl call_bar_indirect
call_bar_indirect:
.functype call_bar_indirect () -> ()
i32.load indirect_bar
call_indirect () -> (i64)
drop
i32.load indirect_foo
call_indirect () -> (i32)
drop
end_function
.section .data.indirect_bar,"",@
indirect_bar:
.int32 bar
.size indirect_bar, 4
.section .data.indirect_foo,"",@
indirect_foo:
.int32 foo
.size indirect_foo, 4
.functype foo () -> (i32)