LA32R Instruction Statistics

This web app collects and displays statistics about instructions found in the provided LoongArch32 Reduced ELF executable or raw opcode binary.


MnemonicCategoryCount
(none)

How does it work?

All statistics are computed locally in the browser, and no data is sent to any server. The decoding is done through a Rust WASM module, so that we can avoid writing complex bit operations in JavaScript.

For ELF files, we iterate over each .text* section and use a linear sweep to decode the instructions. For raw binaries, we just use a linear sweep.

The source code for this app is available at https://github.com/CSharperMantle/la32r-instr-stats.

License

Copyright © 2025 Rong “Mantle” Bao <[email protected]>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.