#!/bin/sh -x # inside output root # create dir mkdir -p dump # grab execution dir EXEC_DIR="$(dirname "$(realpath "$0")")" # dump main executable "$EXEC_DIR"/filter_process_assembly main.elf.s dump/main.instr dump/main.csr