Lifting Assembly to Intermediate Representation

Author:

Hasabnis Niranjan1,Sekar R.2

Affiliation:

1. Intel, Santa Clara, CA, USA

2. Stony Brook University, Stony Brook, NY, USA

Abstract

Translating low-level machine instructions into higher-level intermediate language (IL) is one of the central steps in many binary analysis and instrumentation systems. Existing systems build such translators manually. As a result, it takes a great deal of effort to support new architectures. Even for widely deployed architectures, full instruction sets may not be modeled, e.g., mature systems such as Valgrind still lack support for AVX, FMA4 and SSE4.1 for x86 processors. To overcome these difficulties, we propose a novel approach that leverages knowledge about instruction set semantics that is already embedded into modern compilers such as GCC. In particular, we present a learning-based approach for automating the translation of assembly instructions to a compiler's architecture-neutral IL. We present an experimental evaluation that demonstrates the ability of our approach to easily support many architectures (x86, ARM and AVR), including their advanced instruction sets. Our implementation is available as open-source software.

Funder

Air Force Office of Scientific Research

National Science Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference57 articles.

1. Bad rounding in cvtsi2ss instruction. https://bugs.kde.org/show_bug.cgi?id=319393. Bad rounding in cvtsi2ss instruction. https://bugs.kde.org/show_bug.cgi?id=319393.

2. Dagger. http://dagger.repzret.org. Dagger. http://dagger.repzret.org.

3. Incorrect decoding of vpbroadcastb w reg reg forms. https://bugs.kde.org/show_bug.cgi?id=340725. Incorrect decoding of vpbroadcastb w reg reg forms. https://bugs.kde.org/show_bug.cgi?id=340725.

4. insn_basic test might crash because of setting and not clearing DF flag. https://bugs.kde.org/show_bug.cgi?id=326983. insn_basic test might crash because of setting and not clearing DF flag. https://bugs.kde.org/show_bug.cgi?id=326983.

5. Power lxvw4x instruction uses 4 32 byte loads. https://bugs.kde.org/show_bug.cgi?id=339433. Power lxvw4x instruction uses 4 32 byte loads. https://bugs.kde.org/show_bug.cgi?id=339433.

Cited by 15 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. mlirSynth: Automatic, Retargetable Program Raising in Multi-Level IR Using Program Synthesis;2023 32nd International Conference on Parallel Architectures and Compilation Techniques (PACT);2023-10-21

2. Accurate Disassembly of Complex Binaries Without Use of Compiler Metadata;Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 4;2023-03-25

3. Are machine programming systems using right source-code measures to select code repositories?;Proceedings of the 6th International Workshop on Machine Learning Techniques for Software Quality Evaluation;2022-11-07

4. GitRank;Proceedings of the 19th International Conference on Mining Software Repositories;2022-05-23

5. QRANE: lifting QASM programs to an affine IR;Proceedings of the 31st ACM SIGPLAN International Conference on Compiler Construction;2022-03-18

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3