Chapter 7 DSP的C语言编程ppt课件.ppt

Chapter 7 DSP的C语言编程ppt课件.ppt

ID:59423687

大小:731.50 KB

页数:43页

时间:2020-09-19

Chapter 7 DSP的C语言编程ppt课件.ppt_第1页
Chapter 7 DSP的C语言编程ppt课件.ppt_第2页
Chapter 7 DSP的C语言编程ppt课件.ppt_第3页
Chapter 7 DSP的C语言编程ppt课件.ppt_第4页
Chapter 7 DSP的C语言编程ppt课件.ppt_第5页
资源描述:

《Chapter 7 DSP的C语言编程ppt课件.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、第七章DSP的C语言编程SoftwaredevelopmentflowusingC/C++TheshadedportionofthefigurehighlightsthemostcommonpathofsoftwaredevelopmentforC/C++languageprograms.8/21/20212C/C++ComplierOverviewANSIStandardTheC54xC/C++compilerisafull-featuredoptimizingcompilerthattranslatesstandardANSIC/C++pro

2、gramsintoC54xassemblylanguagesource.Thefollowingsubsectionsdescribethekeyfeaturesofthecompiler.ANSI-standardCThecompilerfullyconformstoANSICStandard.C++ThecompileralsosupportsC++.ANSI-standardruntimesupportAllruntimelibraryfunctionsconformtoANSI-standard.8/21/20213OutputFiles

3、AssemblysourceoutputGeneratesassemblylanguagesourcefilesthatyoucaninspecteasily,enablingyoutoseethecodegeneratedfromtheC/C++sourcefiles.COFFobjectfilesCommonObjectFileFormat,allowstheusertodefinethesystem’smemorymapatlinktime.CodetoinitializedataintoROMEnablestheusertolinkall

4、codeandinitializationdataintoROM,allowingC/C++codetorunfromreset.8/21/20214CompileroperationIntegratedPreprocessorTheC/C++preprocessorisintegratedwiththeparser,allowingfastercompilation.Standalonepreprocessororpreprocessorlistingisalsoavailable.OptimizationUsesasophisticatedo

5、ptimizationpassthatemploysseveraladvancedtechniquesforgeneratingefficient,compactcodefromC/C++source.GeneralOptimizationforanyC/C++codeandC54xspecificoptimizationsforC54xarchitecture.8/21/20215CCS的C语言简介由DSP厂商及第三方为DSP提供C编译器;使得采用高级语言开发DSP软件成为可能;TI公司的CCS又提供了优化的C编译器;优化后的C编译器得到的代码

6、效率只比汇编语言低10%~20%;DSP的C编译器还在不断优化;DSP的C编译器符合ANSIC标准;ANSIC标准会受处理器、运行环境或主机环境的影响。8/21/20216DSP的C语言特性标识符和常数(IdentifierandConstant)标识符大小写敏感,且前100个字符有效;主机和目标字符集为ASCII吗,不存在多字节字符多字符常数按最后一个字符编码。数据类型(DataTypes)与普通C语言类似,不同的是C54x的一个字节为16bits,而并非8bits;表数范围也相应有所变化;size_t的类型为unsignedint,也就是si

7、zeof运算符的结果;prtdiff_t的类型为int—指针相减的结果。8/21/202178/21/20218DataConversion()Float-to-intconversionstruncatetoward0.Pointersandintegerscanbefreelyconverted,aslongastheresulttypeislargeenoughtoholdtheoriginalvalue.ExpressionsWhentwosignedintegersaredividedandeitherisnegative,thequo

8、tientisnegative,andthesignoftheremainderisthesameasthesignofthenumer

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。