Granary / granary2

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

Move direct edge code into fragments #100

Closed pgoodman closed 9 years ago

pgoodman commented 9 years ago

Right now, direct edge code is separately allocated. The original motivation for this was that edge code was always placed in a distinct code cache, but there was previously no structured way to emit different fragments into different caches, and so the edge code was emitted directly into the edge cache. Now that the functionality exists, direct edge code should be moved into the fragment list. This would allow for a few savings, more compact packings of code in the edge cache, no longer having to allocate fixed-size edge cache chunks, etc.