liang.he b71a6bf58f Turn warnings into errors in CI (#4397) 4 ay önce
..
include d298a66d38 bump AOT_CURRENT_VERSION for extended-const (#4511) 5 ay önce
src 412631ac13 fix: correct typos and improve comments across multiple files by codespell (#4116) 10 ay önce
CMakeLists.txt b71a6bf58f Turn warnings into errors in CI (#4397) 4 ay önce
README.md 07eae7c424 Add aot binary analysis tool aot-analyzer (#3379) 1 yıl önce

README.md

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