STORAGE ASSIGNMENT TO DECREASE CODE SIZE

Citation
S. Liao et al., STORAGE ASSIGNMENT TO DECREASE CODE SIZE, ACM SIGPLAN NOTICES, 30(6), 1995, pp. 186-195
Citations number
12
Categorie Soggetti
Computer Sciences","Computer Science Software Graphycs Programming
Journal title
Volume
30
Issue
6
Year of publication
1995
Pages
186 - 195
Database
ISI
SICI code
Abstract
DSP architectures typically provide indirect addressing modes with aut o-increment and decrement. In addition, indexing mode is not available , and there are usually few, if any, general-purpose registers. Hence, it is necessary to use address registers and perform address arithmet ic to access automatic variables. Subsuming the address arithmetic int o auto-increment and auto-decrement modes improves the size of the gen erated code. In this paper we present a formulation of the problem of optimal storage assignment such that explicit instructions for address arithmetic are minimized. We prove that for the case of a single addr ess register the decision problem is NP-complete. We then generalize t he problem to multiple address registers. For both cases heuristic alg orithms are given. Our experimental results indicate an improvement of 3.