-
Notifications
You must be signed in to change notification settings - Fork 1
Analyzing ASM from LAS Test Cases
William R Tobin edited this page May 20, 2018
·
5 revisions
In order to dump the assembly code for the main function of a compiled test case use the following script:
objdump -d petsc_raw | c++filt | awk -v RS= '/^[[:xdigit:]].*<main>/'
replace main with another function name to retrieve the assembly for that function instead. Redirect the output into a file for best performance.
It is also possible to use gdb to decompile the assembly code, which is often faster, but that involves load the binary as an executable so the above is preferred for now.