Memory Optimization Algorithm and Analysis Based on Block Architecture
Hongmei Ge, Chao Xu · 2013
In order to solve an important problem of memory in a selected block: a block switching instruction may be used as little as possible to improve the execution efficiency of target code without affecting the correctness of a program, this paper combines Distribution method of Tiantian Liu et al to set up a corresponding mathematical model whose complexity is analyzed, and puts forward a memory optimization algorithm based on block architecture which is analyzed through the concrete example. This algorithm assigns variables without life cycle overlapping to the same storage space, thereby reducing the storage space variables occupied and also reducing some subsequent selected block instructions for life cycle overlapping of variables can allocate storage location of variables. This algorithm obviously reduces the number of the selected block instructions, realizes the effects of memory optimization and expects the references on all levels.