|
From: Nicholas N. <nj...@cs...> - 2006-06-02 22:13:41
|
On Fri, 2 Jun 2006, Eric Li wrote: > How would I go about translating a binary into the VEX IR and obtaining > the IR so I can do further processing with it? > > I've looked into VEX's exported interface and I only see LibVEX_Translate > which does all the steps (bb to ir, optimize, instrument, etc.) of > translating from the guest bytes to the host bytes but I only want the IR > that it spits out in the middle, preferably wrapped in some kinda nice > clean data structure. You can use the --trace-flags option to dump the IR at various stages as text. Use --help-debug or look in the manual for details. If text is not what you want, I think you're out of luck; Vex doesn't have, AFAIK, any way of handing over the IR. You'll just have to stick your code into the middle of it. But if you tell us what you want to do we might be able to give you more help. Nick |