摘 要
在无需使用复杂处理过程并且也无需改变由控制对象或服务对象说明的字符串类型的情况下,包含空的字符串可以可靠地在对象之间传递。用于将字符串从控制对象(32)传递至服务对象(33)的接口对象将从控制单元(32)接收到的字符串转换成BSTR类型,即使所接收到的字符串是LPCTSTR类型,该接口对象还确定字符串中字符数量,并在不舍弃字符串中任何字符的前提下将字符串转换为宽字符,并且创建一COM标准BSTR类型宽字符字符串。因此,字符串中的空值(0x00)以及所有随后的字符能可靠地被传递至服务对象(33)。
通过利用高效访存指令,能够提升循环执行效率的零开销循环机制,指令重排技术,结合具体功能函数的循环特性,展开针对字符串与内存处理函数的指令级并行性挖掘.实验结果表明,这些库函数的优化效率能够达到硬件平台提供函数性能理论运行时间的1.5倍以下,对BWDSP平台整体性能提升具有重要意义.
关键词:字符串;处理;处理系统;C++;QT
summary
Those containing empty strings can be reliably passed between objects without using complex procedures or changing the string type explained by the control object or the service object.The interface object for passing a string from the control object (32) to the service object (33) converts the string received from the control unit (32) to a BSTR type, even if the received string is the LPCTSTR type, which determines the number of characters in the string, transforms the string to wide characters without abandoning any characters in the string, and creates a COM standard BSTR type wide character string.Therefore, the null value (0x00) in the string and all subsequent characters can be reliably passed to the service object (33).
By using efficient loop instructions, the zero overhead loop mechanism can improve the loop execution efficiency, the instruction rearrangement technology, combined with the loop characteristics of specific function functions, and expand the command-level parallelism mining for string and memory processing functions.Experimental results show that the optimization efficiency of these library functions can reach less than 1.5 times the theoretical running time of the hardware platform, which is of great significance for the overall performance improvement of the BWDSP platform.
Key words: string; processing; processing system; C + +; QT
目录
第一章 需求分析 3
1.1设计目的及要求 3
1.1.1设计目的 3
1.1.2设计要求 3
要求具备如下主要功能: 3
1.2设计需求分析 3
第二章 具体设计 4
2.1设计思路 4
2.2概要设计 4
2.3详细设计 4
第三章 调试分析 8
3.1.1问题1 8
问题2: 9
第四章 测试结果 9
第五章 结束语 11