wasm-micro-runtime/test-tools/aot-analyzer
石博文 3c337dc3ab
fix: Wrong compiler parameter on MSVC (#4778)
* fix: Wrong compiler parameter on MSVC
* refactor: Move gcc flags to common build script.
* refactor: Add both C/CXX flags
2026-01-08 09:10:07 +08:00
..
include bump AOT_CURRENT_VERSION for extended-const (#4511) 2025-07-27 14:39:35 +08:00
src fix: correct typos and improve comments across multiple files by codespell (#4116) 2025-03-07 08:21:54 +08:00
CMakeLists.txt fix: Wrong compiler parameter on MSVC (#4778) 2026-01-08 09:10:07 +08:00
README.md Add aot binary analysis tool aot-analyzer (#3379) 2024-05-08 16:31:39 +08:00

AoT-Analyzer: The AoT Binary analysis tool

Cloning

Clone as normal:

$ git clone 
$ cd aot-analyzer

Building using CMake directly

You'll need CMake. You can then run CMake, the normal way:

$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .

To analyze AoT files with GC feature enabled, you need to enable GC feature when compiling this tool:

$ mkdir build
$ cd build
$ cmake -DWAMR_BUILD_GC=1 ..
$ cmake --build .

Running aot-analyzer

Some examples:

# 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

NOTE: Using -c for file comparison, must ensure that the AoT file is generated based on this Wasm file.

You can use --help to get additional help:

$ ./aot-analyzer --help