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.
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!