基于C-SKY CPU的地址立即数编译优化方法

廉玉龙, 史峥, 李春强 et al. · DOAJ (DOAJ: Directory of Open Access Journals) · 2016

As Reduced Instruction Set Computer(RISC) architecture processors generally use fixed-length instructions,they have to perform the function of long jump instruction in Complex Instruction Set Computer(CISC) architecture processors by a literal pool.This paper proposes an optimized method dealing with the management of addresses immediate value in C-SKY CPU.On one hand,the new algorithm validates every constant address,splits the appropriate ones and stores the common base addresses to reduce the number of memory access instructions,on the other hand,by sharing the common base addresses between different functions,the memory consumption can be reduced further.Experimental result shows that to some drivers,this method can reduce the code size by 3.77%.

Cited by 0 works. doi:10.3969/j.issn.1000-3428.2016.01.009

Authors