1996 · 44 citations · 24 references
ComputingComputer ScienceCompilersProgramming LanguagesStorage SystemsCompiler ConstructionControl-flow AnalysisData-flow AnalysisMemory HierarchyMemory ManagementType SystemsHeap AllocationHeap AnalysisHeap ManagementHigher-order FunctionsSeparate CompilationStack AllocationStack DesignStack Management
In this paper we present a new program analysis method which we call Storage Use Analysis. This analysis deduces how objects are used by the program and allows the optimization of their allocation. This analysis can be applied to both statically typed languages (e.g. ML) and latently typed languages (e.g. Scheme). It handles side-effects, higher order functions, separate compilation and does not require CPS transformation. We show the application of our analysis to two important optimizations: stack allocation and unboxing. The first optimization replaces some heap allocations by stack allocations for user and system data storage (e.g. lists, vectors, procedures). The second optimization avoids boxing some objects. This analysis and associated optimitations have been implemented in the Bigloo Scheme/ML compiler. Experimental results show that for many allocation intensive programs we get a significant speedup. In particular, numerically intensive programs are almost 20 times faster because floating point numbers are unboxed and no longer heap allocated.
24
William H. Press, Saul A. Teukolsky, William T. Vetterling et al. · 1994 · 15.4K citations
Patrick Cousot, Radhia Cousot · 1977 · 6.2K citations
Control-flow analysis of higher-order languages of taming lambda
Olin Shivers · Modern healthcare · 1991 · 343 citations
Abstract interpretation of declarative languages
Information and Software Technology · 1988 · 321 citations · Full text