Displaying 1 result from an estimated 1 matches for "terminatorinstruct".
2016 Jan 19
4
Adding support for self-modifying branches to LLVM?
...se a framework
such as DynInst to replace that nop with an unconditional branch
instruction at run-time.
My questions to the community would be:
- Does the idea make sense, or am I missing a much simpler approach?
- What would be the easiest way to obtain the desired binary? Adding a
new TerminatorInstruction sounds daunting, is there something simpler?
I also wonder whether I could even expects speedups from this? Are nop
instructions actually cheaper than branches? Would modifying the binary at
run-time play well enough with caches etc.? These are probably not
questions for the LLVM mailing list,...