
Weekly Report - June 16, 2025
1. Added Gas Counting Mechanism to the WASM Virtual Machine
Designed the basic framework for gas counting, including the calculation methods and consumption rules for gas.
Integrated the gas counting logic into the virtual machine’s execution engine to ensure that the gas consumption of each operation is accurately recorded.
Conducted preliminary performance tests to validate the effectiveness and accuracy of the gas counting mechanism.
2. Fixed the Crash Issue When Instantiating Modules from WAT Files in the WASM Virtual Machine
Conducted a detailed analysis of the crash cause, confirming that it was due to the missing export of the _start function.
Modified the module instantiation logic to ensure that the _start function can be correctly identified and exported when loading WAT files.
Performed multiple rounds of testing to ensure that the fixed version runs stably across different scenarios.