systems-nuts / unifico

Compiler and build harness for heterogeneous-ISA binaries with the same stack layout.
4 stars 1 forks source link

Added initial implementation of ascii-art stack printing for arm. #216

Closed blackgeorge-boom closed 1 year ago

blackgeorge-boom commented 1 year ago

This is a first attempt to create an auxiliary tool that will pretty-print where the registers are pushed in the stack.

Currently, only supports the arm assembly. Some simple lit tests have been included. The code can be refactored later.

The ProgramState has the stack+register state, whereas a simple asm parser for the relevant stack-modifying instructions has been added.

This tool can parse a specific function up to a desired number of callsites. Obviously, it does not support control flow, however, for an initial quick setup of the frame, I feel it will ease development tremendously.

Let me know what you think!