基于VC++的字符串处理系统 课程设计报告+项目源码
摘 要在无需使用复杂处理过程并且也无需改变由控制对象或服务对象说明的字符串类型的情况下,包含空的字符串可以可靠地在对象之间传递。用于将字符串从控制对象(32)传递至服务对象(33)的接口对象将从控制单元(32)接收到的字符串转换成BSTR类型,即使所接收到的字符串是LPCTSTR类型,该接口对象还确定字符串中字符数量,并在不舍弃字符串中任何字符的前提下将字符串转换为宽字符,并且创建一COM标准BSTR类型宽字符字符串。因此,字符串中的空值(0x00)以及所有随后的字符能可靠地被传递至服务对象(33)。通过利用高效访存指令,能够提升循环执行效率的零开销循环机制,指令重排技术,结合具体功能函数的循环特性,展开针对字符串与内存处理函数的指令级并行性挖掘.实验结果表明,这些库函数的优化效率能够达到硬件平台提供函数性能理论运行时间的1.5倍以下,对BWDSP平台整体性能提升具有重要意义.关键词:字符串;处理;处理系统;C++;QTsummaryThose 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目录第一章 需求分析 31.1设计目的及要求 31.1.1设计目的 31.1.2设计要求 3要求具备如下主要功能: 31.2设计需求分析 3第二章 具体设计 42.1设计思路 42.2概要设计 42.3详细设计 4第三章 调试分析 83.1.1问题1 8问题2: 9第四章 测试结果 9第五章 结束语 11