arrow
Return

CoSense: Compiler Optimizations using Sensor Technical Specifications

delete2024-02-20
delete0
delete
OA
AI
P
Pei Mu *
N
Nikolaos Mavrogeorgis
C
Christos Vasiladiotis
V
Vasileios Tsoutsouras
O
Orestis Kaparounakis
P
Phillip Stanley‐Marbell
A
Antonio Barbalace
DOI:10.1145/3640537.3641576delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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 effciency, 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.18x 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.23x 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.70x and 1.50x 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.
Keywords:
embedded systems
sensors
interval arithmetic
value interval propagation
compiler optimizations

Journal

P
PROCEEDINGS OF THE ACM CONFERENCE ON SECURITY AND PRIVACY IN WIRELESS AND MOBILE NETWORKS
IF:
0
Papers:
1.8K
Citations:
0

Organization

U
University of Cambridge
Scholars:
7.7W
Papers: 7.1W
Citations: 13.7W
U
University of Edinburgh
Scholars:
5.2W
Papers: 4.6W
Citations: 71
Cited Papers

Cited Papers

How to Create a Spin Current
err2005-01-28
err0
PREAI
errPrashant Sharma
errShare
errSave
Preparation and characteristics of nanocrystalline NiO by organic solvent method
err2001-11-01
err0
PREAI
errGuo-Jun Li; Xiao-Xian Huang; Ying Shi; Jing-Kun Guo
errShare
errSave
Small
err
IF0
err2023-07-03
err0
PREAI
err
errShare
errSave
Biocompatible Magnetite Nanoparticles Trapped at the Air/Water Interface
err2010-11-05
err0
errOAAI
errCristina Stefaniu; Munish Chanana; Dayang Wang; Dmitri V. Novikov; Gerald Brezesinski; Helmuth Möhwald
errShare
errSave
errShare
errSave
Organization of carbon black in laminates of cellulose and melamine‐formaldehyde
err2005-01-13
err0
PREAI
errB. Voigt; D. Rouxel; D.H. McQueen; R.W. Rychwalski
errShare
errSave
Direct Measurement of the Spin-Orbit Interaction in a Two-Electron InAs Nanowire Quantum Dot
err2007-06-26
err0
errOAAI
errC. Fasth; A. Fuhrer; L. Samuelson; Vitaly N. Golovach; Daniel Loss
errShare
errSave
researcher View more