CoSense: Compiler Optimizations using Sensor Technical Specifications
CoSense: Compiler Optimizations using Sensor Technical Specifications
复制标题
CoSense:使用传感器技术规范进行编译器优化
DOI:
10.1145/3640537.3641576
复制
发表时间:
2024
期刊:
影响因子:
--
通讯作者:
Mu P
中科院分区:
文献类型:
--
作者:
Mu P
Embedded systems are ubiquitous, but in order to maximize their lifetime on batteries there is a need for faster code execution – i.e., higher energy efficiency, and for reduced memory usage. The large number of sensors integrated into embedded systems gives us the opportunity to exploit sensors’ technical specifications, like a sensor’s value range, to guide compiler optimizations for faster code execution, small binaries, etc. We design and implement such an idea in COSENSE, a novel compiler (extension) based on the LLVM infrastructure, using an existing domain-specific language (DSL), NEWTON, to describe the bounds of and relations between physical quantities measured by sensors. COSENSE utilizes previously unexploited physical information correlated to program variables to drive code optimizations. COSENSE computes value ranges of variables and proceeds to overload functions, compress variable types, substitute code with constants and simplify the condition statements. We evaluated COSENSE using several microbenchmarks and two real-world applications on various platforms and CPUs. For microbenchmarks, COSENSE achieves 1.18× geomean speedup in execution time and 12.35% reduction on average in binary code size with 4.66% compilation time overhead on x86, and 1.23× geomean speedup in execution time and 10.95% reduction on average in binary code size with 5.67% compilation time overhead on ARM. For real-world applications, COSENSE achieves 1.70× and 1.50× speedup in execution time, 12.96% and 0.60% binary code reduction, 9.69% and 30.43% lower energy consumption, with a 26.58% and 24.01% compilation time overhead, respectively.
登录
查看更多内容
DOI:
--
发表时间:
2018
期刊:
arXiv.org
影响因子:
--
作者:
J. Lim;Phillip Stanley
通讯作者:
Phillip Stanley
DOI:
--
发表时间:
--
期刊:
影响因子:
--
作者:
Chenyi Hu
通讯作者:
Chenyi Hu
DOI:
--
发表时间:
1999
期刊:
International Conference on Parallel Architectures and Compilation Techniques
影响因子:
--
作者:
Tsuneo Nakanishi;K. Joe;C. Polychronopoulos;A. Fukuda
通讯作者:
A. Fukuda
DOI:
--
发表时间:
2015
期刊:
ACM SIGPLAN Symposium/Workshop on Haskell
影响因子:
--
作者:
Adam Gundry
通讯作者:
Adam Gundry
DOI:
10.1109/ase.2003.1240326
发表时间:
2003
期刊:
18th IEEE International Conference on Automated Software Engineering, 2003. Proceedings.
影响因子:
--
作者:
Grigore Roşu;Feng Chen
通讯作者:
Feng Chen