blob: b29d05ef5a1adb1da1de115ba2b441b432230d35 (
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
60
|
;;; FLAGS: -dv
(module
(func
(drop (f32.reinterpret/i32 (i32.const 0)))
(drop (i32.reinterpret/f32 (f32.const 0)))
(drop (f64.reinterpret/i64 (i64.const 0)))
(drop (i64.reinterpret/f64 (f64.const 0)))))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
0000004: 0c00 0000 ; WASM_BINARY_VERSION
; section "type"
0000008: 04 ; string length
0000009: 7479 7065 ; section id: "type"
000000d: 00 ; section size (guess)
000000e: 01 ; num types
; type 0
000000f: 40 ; function form
0000010: 00 ; num params
0000011: 00 ; num results
000000d: 04 ; FIXUP section size
; section "function"
0000012: 08 ; string length
0000013: 6675 6e63 7469 6f6e ; section id: "function"
000001b: 00 ; section size (guess)
000001c: 01 ; num functions
000001d: 00 ; function 0 signature index
000001b: 02 ; FIXUP section size
; section "code"
000001e: 04 ; string length
000001f: 636f 6465 ; section id: "code"
0000023: 00 ; section size (guess)
0000024: 01 ; num functions
; function body 0
0000025: 00 ; func body size (guess)
0000026: 00 ; local decl count
0000027: 10 ; OPCODE_I32_CONST
0000028: 00 ; i32 literal
0000029: ad ; OPCODE_F32_REINTERPRET_I32
000002a: 0b ; OPCODE_DROP
000002b: 13 ; OPCODE_F32_CONST
000002c: 0000 0000 ; f32 literal
0000030: b4 ; OPCODE_I32_REINTERPRET_F32
0000031: 0b ; OPCODE_DROP
0000032: 11 ; OPCODE_I64_CONST
0000033: 00 ; i64 literal
0000034: b3 ; OPCODE_F64_REINTERPRET_I64
0000035: 0b ; OPCODE_DROP
0000036: 12 ; OPCODE_F64_CONST
0000037: 0000 0000 0000 0000 ; f64 literal
000003f: b5 ; OPCODE_I64_REINTERPRET_F64
0000040: 0b ; OPCODE_DROP
0000025: 1b ; FIXUP func body size
0000023: 1d ; FIXUP section size
;; dump
0000000: 0061 736d 0c00 0000 0474 7970 6504 0140
0000010: 0000 0866 756e 6374 696f 6e02 0100 0463
0000020: 6f64 651d 011b 0010 00ad 0b13 0000 0000
0000030: b40b 1100 b30b 1200 0000 0000 0000 00b5
0000040: 0b
;;; STDOUT ;;)
|