基于GCC的TMS320C67xx汇编代码的优化  被引量:1

TMS320C67xx assembler code optimization based on GCC

在线阅读下载全文

作  者:王浩[1,2] 

机构地区:[1]中国科学院长春光学精密机械与物理研究所,长春130033 [2]中国科学院航空光学成像与测量重点实验室,长春130033

出  处:《国外电子测量技术》2015年第5期61-65,共5页Foreign Electronic Measurement Technology

摘  要:为了使生成的汇编代码具有更高的执行效率,设计并实现了一种基于GCC的TMS320C67xx汇编指令级的代码优化算法。首先,将汇编指令按照功能划分为不同的指令类型,并将汇编指令链接到链表中。然后,针对每一个寄存器建立对该寄存器的读写操作指令链表。最后,通过对指令类型的判断和对寄存器读写操作指令链表的分析,完成了冗余代码的删除和指令合并。实验结果表明,经过代码优化后,TMS320C67xx汇编代码的执行效率提高了20%左右,较中间代码级的优化算法执行效率提高了15%左右。In order to generate higher efficiency assembler code ,design and implement a TMS320C67xx assembler in‐struction level optimization algorithm based on GCC .Firstly ,assembler instructions are divided into different types ac‐cording to the function of instructions .Then ,link assembler instructions to the list .Secondly ,establish a read and write operation instruction list for each register .Finally ,through the judgment of instruction types and the analysis of read and write instructions list for each register ,complete the deletion of redundant code and the merging of instructions .The ex‐perimental results show that the execution efficiency of TMS320C67xx assembler code increased by about 20% after code optimization .Compared with the intermediate code optimization ,execution efficiency increased by about 15% .

关 键 词:GCC编译器 DSP 代码优化 

分 类 号:TN602[电子电信—电路与系统]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象