Partial Evaluation of Machine Code

dc.contributor.authorSrinivasan, Venkatesh
dc.contributor.authorReps, Thomas
dc.date.accessioned2015-08-26T19:36:32Z
dc.date.available2015-08-26T19:36:32Z
dc.date.issued2015-08-21
dc.description.abstractThis paper presents an algorithm for off-line partial evaluation of machine code. The algorithm follows the classical two-phase approach of binding-time analysis (BTA) followed by specialization. However, machine-code partial evaluation presents a number of new challenges, and it was necessary to devise new techniques for use in each phase. - Our BTA algorithm makes use of an instruction-rewriting method that "decouples'' multiple updates performed by a single instruction. This method counters the cascading imprecision that would otherwise occur with a more naive approach to BTA. - Our specializer specializes an explicit representation of the semantics of an instruction, and emits residual code via machine-code synthesis. Moreover, to create code that allows the stack and heap to be at different positions at run-time than at specialization-time, the specializer represents specialization-time addresses using symbolic constants, and uses a symbolic state for specialization. Our experiments show that our algorithm can be used to specialize binaries with respect to commonly used inputs to produce faster binaries, as well as to extract an executable component from a bloated binary.en
dc.identifier.citationTR1821en
dc.identifier.urihttp://digital.library.wisc.edu/1793/73341
dc.subjectIA-32 instruction seten
dc.subjectmachine-code synthesisen
dc.subjectspecializationen
dc.subjectBTAen
dc.subjectmachine codeen
dc.subjectpartial evaluationen
dc.titlePartial Evaluation of Machine Codeen
dc.typeTechnical Reporten

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
TR1821.pdf
Size:
747.15 KB
Format:
Adobe Portable Document Format
Description:
tech report

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.03 KB
Format:
Item-specific license agreed upon to submission
Description: