1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
0x0: 0x0 0x61 0x73 0x6d ; wasm magic header
0x4: 0x1 0x0 0x0 0x0 ; wasm version
; section Type
0xa: 0x1 ; section code
0xa: 0x7 ; section size
0xb: 0x1 ; num types
; type 0
0xc: 0x60 ; func
0xd: 0x2 ; number
0xe: 0x7f ; i32
0xf: 0x7f ; i32
0x10: 0x1 ; number
0x11: 0x7f ; i32
; section Function
0x13: 0x3 ; section code
0x13: 0x2 ; section size
0x14: 0x1 ; num funcs
0x15: 0x0 ; type index
; section Code
0x17: 0xa ; section code
0x17: 0x9 ; section size
0x18: 0x1 ; number functions
; function body 0
0x19: 0x7 ; function body size
0x1a: 0x0 ; num locals
0x1b: 0x20 ; get_local
0x1c: 0x0 ; argument 0
0x1d: 0x20 ; get_local
0x1e: 0x1 ; argument 0
0x1f: 0x6a ; i32.add
0x20: 0xb ; end
; section Custom
0x22: 0x0 ; section code
0x22: 0x1c ; section size
0x22: 0x4 ; string length
0x27: ; section name (name)
0x2b: 0x3 ; string length
0x35: 0x3 ; string length
0x3a: 0x3 ; string length
; end of program
|