rlavaee / codestitcher

Interprocedural Basic Block Code Layout Optimization
http://cs.rochester.edu/u/rlavaee/
Other
17 stars 2 forks source link

Codestitcher

Codestitcher enables interprocedural basic block code layout optimization on Linux platforms.

It relies on LBR technology (last branch record), which is available on most Intel CPUs. For more details, please see our arxiv paper: https://arxiv.org/abs/1810.00905

To install:

To test:

Large page support

For large programs (larger than 1MB), passing "-Wl,-plugin-opt,-enable-huge-pages -lhugepage_text_rt -L../build -Wl,-z,max-page-size=0x200000" ensures that the hot code is loaded onto large 2MB pages. To test this feature (even though it is not applicable for the provided small test case), run