Created
December 9, 2020 20:09
-
-
Save alexcrichton/9b3972f278a47b502cd32480b685b98d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x0000 | 00 61 73 6d | version 1 | |
| 01 00 00 00 | |
0x0008 | 01 0f | type section | |
0x000a | 02 | 2 count | |
0x000b | 60 00 00 | [type 0] Func(FuncType { params: [], returns: [] }) | |
0x000e | 62 02 01 66 | [type 1] Instance(InstanceType { exports: [ExportType { name: "f", ty: Function(0) }, ExportType { name: "g", ty: Global(GlobalType { content_type: I32, mutable: false }) }] }) | |
| 00 00 01 67 | |
| 03 7f 00 | |
0x0019 | 02 06 | import section | |
0x001b | 01 | 1 count | |
0x001c | 00 00 ff 06 | import [instance 0] Import { module: "", field: None, ty: Instance(1) } | |
| 01 | |
0x0021 | 10 09 | alias section | |
0x0023 | 02 | 2 count | |
0x0024 | 00 00 00 00 | [alias] Alias { instance: Child(0), kind: Function, index: 0 } | |
0x0028 | 00 00 03 01 | [alias] Alias { instance: Child(0), kind: Global, index: 1 } | |
0x002c | 07 09 | export section | |
0x002e | 02 | 2 count | |
0x002f | 01 66 00 00 | export Export { field: "f", kind: Function, index: 0 } | |
0x0033 | 01 67 03 00 | export Export { field: "g", kind: Global, index: 0 } | |
0x0037 | 00 0e 04 6e | custom section: "name" | |
| 61 6d 65 | |
0x003e | 01 07 | function names | |
0x0040 | 01 | 1 count | |
0x0041 | 00 04 69 2e | Naming { index: 0, name: "i.$j" } | |
| 24 6a | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(import "" (instance $i | |
(export "f" (func $j)) | |
(export "g" (global $j i32)) | |
)) | |
(export "f" (func $i.$j)) | |
(export "g" (global $i.$j)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment