首页> 外文会议>International Symposium on Computing and Networking >A Translation Method of ARM Machine Code to LLVM-IR for Binary Code Parallelization and Optimization
【24h】

A Translation Method of ARM Machine Code to LLVM-IR for Binary Code Parallelization and Optimization

机译:一种转换方法对LLVM-IR进行二进制代码并行化和优化

获取原文

摘要

Recently, mobile computing and embedded devices equipped with high performance computing components such as multicore processor and GPU are becoming popular. In order to speedup user programs by making full use of these computing components, it is necessary to optimize the program according to the runtime environment on various types of devices. Binary code optimization is one promising solution. Especially, in order to optimize ARM-native program code for various target devices, using the LLVM compiler infrastructure for binary code optimization is considered quite useful. To realize this, we want to use various optimization modules of LLVM compiler, but they perform their processings on LLVM-IR (Intermediate Representation). Thus, we need to develop a frontend for LLVM that translates ARM machine code to LLVM-IR. In this paper, we make preliminary discussions on the ARM-to-LLVM-IR translation. The translated IR codes should match the optimization process of LLVM. However, what form of IR code is desired is unclear, so we aim at generating the IR code equivalent to the compiler-generated IR code. We discuss a code translation method by comparing with the IR codes generated by Clang from C source codes. Preliminary evaluation results show that our translation method can generate the IR codes equivalent to the one generated from C source program code.
机译:最近,配备有高性能计算组件的移动计算和嵌入式设备,例如多核处理器和GPU正在变得流行。为了通过充分利用这些计算组件来加速用户程序,有必要根据各种类型的设备上的运行时环境优化程序。二进制代码优化是一个有希望的解决方案。特别是,为了优化各种目标设备的ARM-Native程序代码,使用LLVM编译器基础架构进行二进制代码优化被认为非常有用。为了实现这一点,我们希望使用LLVM编译器的各种优化模块,但它们在LLVM-IR(中间表示)上执行它们的处理。因此,我们需要开发LLVM的前端,它将ARM机器代码转换为LLVM-IR。在本文中,我们对ARM-TO-LLVM-IR翻译进行了初步讨论。翻译的IR代码应匹配LLVM的优化过程。但是,期望的IR代码的形式不清楚,因此我们的目标是生成等于编译器生成的IR代码的IR代码。我们通过与CLANG从C源代码生成的IR代码进行比较来讨论代码翻译方法。初步评估结果表明,我们的翻译方法可以生成与C源程序代码生成的IR代码相当。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号