论文部分内容阅读
随着嵌入式系统应用的发展,高效和小型化是其主要特点,这对目标代码质量的要求也越来越高。针对自行设计的32位具有RISCDSP结构的媒体处理器MD32特有的体系结构特点,提出C编译器支持的,在汇编代码级通过指令调度和转换指令操作数及其类型的代码优化方法,实现输出高效的并行指令。统计数据表明:代码执行效率平均可以提高15%,而代码密度平均提高12%。
With the development of embedded system applications, high efficiency and miniaturization are its main features, and the requirements on the quality of the target code are also getting higher and higher. In view of the unique architectural characteristics of 32-bit RISCSP media processor MD32 designed by ourselves, this paper proposes a C-compiler-based code optimization method for dispatching and converting instruction operands and their types at the assembler level by means of instructions to achieve high output efficiency Parallel instruction. Statistics show that: the average code execution efficiency can be increased by 15%, while the average code density increased by 12%.