ASIC:概念验证二进制优化器减少了体积,更多功能即将推出
我开发了一个名为ASIC的概念验证二进制优化器,它将常见的指令序列替换为专用指令。<p>即使仅实现了19种已识别模式中的2种,它也使一个测试二进制文件减少了0.02%。想象一下,一旦覆盖所有模式,潜力将会有多大。<p>亮点:<p>直接作用于二进制文件,无需更改源代码。<p>与现有的优化方法兼容,如O2/O3、Oz和strip。<p>具有跨架构的潜力,不仅限于ARM64或ELF。<p>可以与打包工具(如UPX)互补,而不会降低执行速度。<p>这是一个早期阶段的项目,但这个概念证明了指令级模式替换是可行的。下一步:实现所有热点模式以进行有意义的优化。<p>希望能听到任何在二进制转换或运行时指令仿真方面有经验的人的想法。
查看原文
I’ve built a PoC binary optimizer called ASIC that replaces common instruction sequences with specialized instructions.<p>Even with only 2 patterns implemented out of 19 identified, it reduced a test binary by 0.02%. Imagine the potential once all patterns are covered.<p>Highlights:<p>Works directly on binaries, no source changes needed.<p>Compatible with existing optimizations like O2/O3, Oz, and strip.<p>Cross-architecture potential, not limited to ARM64 or ELF.<p>Can complement packing tools (like UPX) without slowing execution.<p>This is early-stage, but the concept proves instruction-level pattern replacement is feasible. Next step: implement all hot patterns for meaningful optimization.<p>Would love thoughts from anyone who’s worked with binary transformations or runtime instruction emulation.