1  .globl  bar
2bar:
3  .functype bar () -> (i64)
4  i64.const 1
5  end_function
6
7  .globl  call_bar_indirect
8call_bar_indirect:
9  .functype call_bar_indirect () -> ()
10  i32.load  indirect_bar
11  call_indirect () -> (i64)
12  drop
13  i32.load  indirect_foo
14  call_indirect () -> (i32)
15  drop
16  end_function
17
18  .section  .data.indirect_bar,"",@
19indirect_bar:
20  .int32  bar
21  .size indirect_bar, 4
22
23  .section  .data.indirect_foo,"",@
24indirect_foo:
25  .int32  foo
26  .size indirect_foo, 4
27
28  .functype foo () -> (i32)
29