A demo TriCore disassembler. Given a TriCore ELF file as input, we look into the symbol table for TriCore code mapping symbols. Available instructions are disassembled based on code symbols and printed to stdout. When symbol table is not found, disassembly is done using linear sweep similar to objdump.
Additionally, the tool displays some useful statistics such as the number of basic blocks, direct jumps and indirect jumps found in the binary.
Build the project and try it on one of the binaries available here, for example:
./ditricore -t -f coreutils/echo
It's possible to use linear sweep directly using -l option.
The project depends on our forked Capstone disassembly library and on our llvm-tricore.