blob: c90e258537b56c109dbecb009e233cf93f5c9058 (
plain)
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
|
;;; TOOL: wat2wasm
;;; ARGS: -v --no-check
(module
(memory 1)
(data (i32.add (i32.const 1) (i32.const 2)) "foo"))
(;; STDERR ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "Memory" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
000000a: 01 ; num memories
; memory 0
000000b: 00 ; limits: flags
000000c: 01 ; limits: initial
0000009: 03 ; FIXUP section size
; section "DataCount" (12)
000000d: 0c ; section code
000000e: 00 ; section size (guess)
000000f: 01 ; data count
000000e: 01 ; FIXUP section size
; truncate to 13 (0xd)
; section "Data" (11)
000000d: 0b ; section code
000000e: 00 ; section size (guess)
000000f: 01 ; num data segments
; data segment header 0
0000010: 00 ; segment flags
0000011: 41 ; i32.const
0000012: 01 ; i32 literal
0000013: 41 ; i32.const
0000014: 02 ; i32 literal
0000015: 6a ; i32.add
0000016: 0b ; end
0000017: 03 ; data segment size
; data segment data 0
0000018: 666f 6f ; data segment data
000000e: 0c ; FIXUP section size
;;; STDERR ;;)
|