j******n 发帖数: 271 | 1 I'm looking for some guide on self modifying code. I googled quite a bit but
didn't find anything other than trivial, e g, copy a whole function to some
data area and then call the function from the new location. I am searching
this not just for fun, but for a real business problem, specifically
something like this:
some instruction;
// i'd like to insert some instruction here at runtime
more instruction;
// i'd like to insert some more instruction here at runtime
Can somebody shed some light or provide some links, reference books? I'm
running on linux/intel. I'd do it in C/asm and I don't care about
portability. Many thanks. | v*s 发帖数: 946 | |
|