Update wasm app build scripts for wasi-sdk-12 and refine interpreter (#481)
Update wasm app build scripts for wasi-sdk-12.0: add --export=__main_argc_argv, remove --no-threads Lookup function with name "__main_argc_argv" as main function besides "main" Change module_malloc to runtime_malloc in wasi native lib Refine classic interpreter op_block and op_br_table Refine faster interpreter op_br_table Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -405,10 +405,10 @@ typedef struct BlockType {
|
||||
} BlockType;
|
||||
|
||||
typedef struct WASMBranchBlock {
|
||||
uint8 label_type;
|
||||
uint32 cell_num;
|
||||
uint8 *begin_addr;
|
||||
uint8 *target_addr;
|
||||
uint32 *frame_sp;
|
||||
uint32 cell_num;
|
||||
} WASMBranchBlock;
|
||||
|
||||
/* Execution environment, e.g. stack info */
|
||||
|
||||
Reference in New Issue
Block a user