Granary / granary2

Dynamic binary translation framework for instrumenting x86-64 user space Linux programs
MIT License
39 stars 5 forks source link

Enabling displacing existing `MemoryOperand`s inside of inline assembly. #107

Open pgoodman opened 9 years ago

pgoodman commented 9 years ago

The following should be possible:

MemoryOperand foo(...);
lir::InlineAssembly asm_(foo);
asm_.InlineBefore(instr,
    "INC m64 [%0 + 4];"_x86_64);

Normally, one would only be able to do "INC m64 %0", so I think this would make a nice improvement that would reduce the number of parameters that need to be passed in to inline assembly blocks.