Bit-Width Analysis for General Applications
Author(s)
Ding, Yang; Wong, Weng Fai
DownloadCS002.pdf (221.4Kb)
Metadata
Show full item recordAbstract
It has been widely known that a significant part of the bits are useless or even unused during the program execution. Bit-width analysis targets at finding the minimum bits needed for each variable in the program, which ensures the execution correctness and resources saving.
In this paper, we proposed a static analysis method for bit-widths in general applications, which approximates conservatively at compile time and is independent of runtime conditions. While most related work focus on integer applications, our method is also tailored and applicable to floating point variables, which could be extended to transform floating point number into fixed point numbers together with precision analysis. We used more precise representations for data value ranges of both scalar and array variables. Element level analysis is carried out for arrays. We also suggested an alternative for the standard fixed-point iterations in bi-directional range analysis. These techniques are implemented on the Trimaran compiler structure and tested on a set of benchmarks to show the results.
Date issued
2005-01Series/Report no.
Computer Science (CS);
Keywords
Bit-width analysis, compiler optimization, flow analysis, range analysis