Skip to content

move fetch_exec_next_insn to insn.c#333

Open
yamt wants to merge 16 commits intomasterfrom
insn
Open

move fetch_exec_next_insn to insn.c#333
yamt wants to merge 16 commits intomasterfrom
insn

Conversation

@yamt
Copy link
Owner

@yamt yamt commented Sep 25, 2025

No description provided.

yamt added 9 commits February 2, 2026 15:05
unexport instruction tables
the motivation is to allow llvm merge the identical validation logic.
for example, the validation logic for i32.add and i32.sub are identical.
llvm doesn't merge functions if their pointers are taken. (in our case,
for the "instructions" table.)

todo:
- implement read_insn_nocheck
- do the same for multibyte instructions (or decide not to do)
yamt added 7 commits February 3, 2026 23:27
TOYWASM_PROCESS_INSN_WITH_SWITCH=ON
```
Segment __PAGEZERO: 4294967296 (zero fill)
Segment __TEXT: 274432
        Section __text: 235703
        Section __stubs: 510
        Section __cstring: 14126
        Section __const: 1584
        Section __unwind_info: 5240
        Section __eh_frame: 12984
        total 270147
Segment __DATA_CONST: 12288
        Section __got: 736
        Section __const: 9824
        total 10560
Segment __DATA: 4096
        Section __data: 8
        total 8
Segment __LINKEDIT: 57344
total 4295315456
```

TOYWASM_PROCESS_INSN_WITH_SWITCH=OFF
```
Segment __PAGEZERO: 4294967296 (zero fill)
Segment __TEXT: 397312
        Section __text: 357991
        Section __stubs: 510
        Section __cstring: 14216
        Section __const: 1584
        Section __unwind_info: 5256
        Section __eh_frame: 13016
        total 392573
Segment __DATA_CONST: 28672
        Section __got: 736
        Section __const: 26784
        total 27520
Segment __DATA: 4096
        Section __data: 8
        total 8
Segment __LINKEDIT: 69632
total 4295467008
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant