blob: 3315863ee5ac1783466480c336473d46262e3d20 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
;;; TOOL: run-objdump
;;; ARGS0: -v
;;; ARGS1: -x
(module
(memory 1)
(data (i32.const 10) "hello")
(data (i32.const 20) "goodbye, Lorem ipsum dolor sit amet, consectetur"))
(;; STDOUT ;;;
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 "Data" (11)
000000d: 0b ; section code
000000e: 00 ; section size (guess)
000000f: 02 ; num data segments
; data segment header 0
0000010: 00
0000011: 41 ; i32.const
0000012: 0a ; i32 literal
0000013: 0b ; end
0000014: 05 ; data segment size
; data segment data 0
0000015: 6865 6c6c 6f ; data segment data
; data segment header 1
000001a: 00
000001b: 41 ; i32.const
000001c: 14 ; i32 literal
000001d: 0b ; end
000001e: 30 ; data segment size
; data segment data 1
000001f: 676f 6f64 6279 652c 204c 6f72 656d 2069
000002f: 7073 756d 2064 6f6c 6f72 2073 6974 2061
000003f: 6d65 742c 2063 6f6e 7365 6374 6574 7572 ; data segment data
000000e: 40 ; FIXUP section size
memory.wasm: file format wasm 0x1
Section Details:
Memory[1]:
- memory[0] pages: initial=1
Data[2]:
- segment[0] size=5 - init i32=10
- 000000a: 6865 6c6c 6f hello
- segment[1] size=48 - init i32=20
- 0000014: 676f 6f64 6279 652c 204c 6f72 656d 2069 goodbye, Lorem i
- 0000024: 7073 756d 2064 6f6c 6f72 2073 6974 2061 psum dolor sit a
- 0000034: 6d65 742c 2063 6f6e 7365 6374 6574 7572 met, consectetur
Code Disassembly:
;;; STDOUT ;;)
|