Commit Graph

6 Commits

Author SHA1 Message Date
YAMAMOTO Takashi
3d4d8e61f0
aot-analyzer: Fix a few printf formats (#3590) 2024-07-02 15:32:38 +08:00
YAMAMOTO Takashi
212d830eb7
aot-analyzer: Fix macos build (#3589)
* macOS doesn't have -lrt.

* this program doesn't seem to require librt even on ubuntu.

build tested on macOS and ubuntu.
2024-07-02 15:25:03 +08:00
HongxiaWangSSSS
fe4ed6adf2
Fix compilation errors in aot-analyzer tool (#3584)
Corrected compilation failures due to structure changes, like AOTImportTable.
2024-07-02 11:26:13 +08:00
Benbuck Nason
3746534010
Add table type API support (#3515)
Add `wasm_runtime_get_export_table_inst` and `wasm_table_get_func_inst`,
and related wasm_table_type_get_xxx APIs.
2024-06-19 14:50:46 +08:00
Benbuck Nason
8239dd4aa7
Add wasm_export.h APIs to expose memory type (#3496)
Support to get `wasm_memory_type_t memory_type` from API
`wasm_runtime_get_import_type` and `wasm_runtime_get_export_type`,
and then get shared flag, initial page cout, maximum page count
from the memory_type:
```C
bool
wasm_memory_type_get_shared(const wasm_memory_type_t memory_type);
uint32_t
wasm_memory_type_get_init_page_count(const wasm_memory_type_t memory_type);
uint32_t
wasm_memory_type_get_max_page_count(const wasm_memory_type_t memory_type);
```
2024-06-06 09:20:24 +08:00
GanJingSaiyan
07eae7c424
Add aot binary analysis tool aot-analyzer (#3379)
Add aot binary analysis tool aot-analyzer, samples:

```bash
# parse example.aot, and print basic information about AoT file
$ ./aot-analyzer -i example.aot

# parse example.aot, and print the size of text section of the AoT file
$ ./aot-analyzer -t example.aot

# compare these two files, and show the difference in function size between them
$ ./aot-analyzer -c example.aot example.wasm
```

Signed-off-by: ganjing <ganjing@xiaomi.com>
2024-05-08 16:31:39 +08:00