Wind River Diab Compiler for PowerPC

4星(超过85%的资源)
所需积分/C币:50 2013-01-14 20:25:29 7.09MB PDF
101
收藏 收藏
举报

This manual describes the tools in the Wind River Diab Compiler toolkit . It includes detailed information about each tool, optimization hints, and guidelines for porting existing code to the compilers and assembler. For introductory information, including an example program, see the Getting Started manual.
Contents PART INTRODUCTION 1 Overview 1.1 Introduction 1.2Oⅴ erview of the tools…... 1.3 Documentation 2 Configuration and Directory Structure……… 333699 2.1 Introduction…19 2.2 Components and directories... 23 Accessing Current and other Versions of the Tool……………13 2.4 Environment variables 14 Drivers and Subprogram Flow…,…………,,…,……,…"…,……,17 3.1 Introduction m........mm.. 17 3.2 Program Flow and Components 17 4 Selecting a Target and Its Components 4.1 Selecting a Target 42 Selected Startup Module and Libraries……23 4.3 Alternatives for Selecting a Target Configuration . Wind River Diab Compiler for PowerPC ser's Guide, 5.9 PART I: WIND RIVER DIAB COMPILER 5 Invoking the compiler 5.1 The Command Line .. 5.2 Rules for Writing Command-Line Options..... 53 Examples of Processing Source Files…… 30 6 Additions to ansi c and ct+ 33 6.1 Preprocessor Predefined Macros 33 6.2 Preprocessor Directives 35 6.3 Pragmas 6.4 Keywords ............... 48 65 Attribute Specifiers…… 6.6 Intrinsic functions 6.7 Other additions……58 7 Embedding Assembly Code.……...,,…,…,…,……63 7.1 Introduction .. 7. 2 asm macros 73 asm String Statements…… 0 7.4 Reordering in asm Code 7.5 Avoiding asm Statements with Intrinsic assembly 72 8 Internal Data Representation... 8.1 Introduction… 73 82 Basic Data Types………………3 8.3 Byte Ordering…..….……,,75 84 Arrays…,.,,, 75 8.5 Bit-fields 75 8.6 Classes, Structures, and unions 87C++ Classes………..,1 Contents 8.8 Linkage and Storage Allocation . 9 Calling Conventions… 自m自日面 83 91 Introduction∴ 83 9.2 Stack Layout 9.3 Argument Passing 86 9.4 C++ Argument Passing 95 Returning Results…… 90 9.6 Register Use 90 10 Optimization……,……:::93 10.1 Introduction 93 10.2 Optimization Hints..... 10.3 Whole- Program Optimization……9 10.4 Target-Independent optimizations 100 10.5 Target-Dependent Optimizations 111 10.6 Example of optimizations 。看。B普非 114 107 Suggested Optimizations………… 117 11 The Lint Facility…......……119 11.1 Introduction…… 119 112 Examples….…120 12 Converting Existing Code.…,.,,,,…………123 12.1 Introduction 123 12.2 Compilation Issues...... 123 12.3 Execution Issues 125 12.4 GNU Command-Line options 126 13c++ Features and Compatibility…… 127 13.1 Introduction,….....................................127 Wind River Diab Compiler for PowerPC ser's Guide, 5.9 13.2 Header files…127 13.3 C++ Standard libraries n128 13.4 Migration From C to C++ 129 135 Implementation-Specific C++ Features………130 136C++ Name Mangling…...… 133 137 Avoid setjmp and longjmp……134 13.8Pr iled headers 134 14 Locating Code and Data, Addressing, Access……………137 14.1 Controlling Access to Code and Data 137 142 Addressing Mode- Functions, variables, Strings………143 14.3 Access mode-Read, write, Execute 144 Local data area(- Local-data-area)…… …150 14.5 Small data and small Const areas . mmmmmmmmmmmmmmmmmm, 151 14.6 Position-Independent Code and Data(PIC and PID)......152 15 Use in an embedded environment,……155 151 Introduction……… 155 15.2 Compiler Options for Embedded Development...... 156 15.3 User Modifications 157 15.4 Startup and Termination Code 157 15.5 Hardware Exception Handling ........ 163 15.6 Library Exception Handling .163 15.7 Linker command file………164 15.8 Operating System Calls . 165 15.9 Communicating with the Hardware 168 15.10 Reentrant and Thread-Safe" Library Functions.................169 15.11 Target Program Arguments, Environment Variables, and Predefined Files..170 15.12 Profiling in an Embedded Environment 172 Contents 1513 Support for Multiple Object Formats…………173 PART III: WIND RIVER ASSEMBLER 16 The Wind river assembler 177 16.1 Introduction 177 162 Selecting the target…… ·······中春命七·命·命中4命命 177 16.3 The das Command 178 17 Syntax Rules 179 17.1 Format of an Assembly Language Line 179 172 Symbols…181 7.3 Direct Assignment Statements…… 174 External Symbols……… 182 17.5 Local Symbols 183 17.6 Constants 1。鲁 184 18 Sections and location Counters 18.1 Program Sections.. 4444444187 18.2 Location counters…… 188 19 Assembler Expressions.…,.………191 19.1 Introduction…….1191 19.2 Evaluation of Terms and Expressions.......... 191 193 Unary Operators………………………192 194 Binary Operators…… 194 20 Assembler directives………197 20.1 Introduction 197 20.2 List of directives 21 Assembler macros 21.1 Introduction 217 Wind River Diab Compiler for PowerPC ser's Guide, 5.9 21.2 Macro Definition 217 21.3 Invoking a macro 220 21.4 Macros to"Define" Structures ……220 22 Example Assembler Listing…… 223 PART V: WIND RIVER LINKER 23 The Wind river linker 227 23. 1 Introduction . 23.2 The linking process 28 233 Symbols created By the Linker…...…231 23.4.abs sections 233 23.5 COMMON Sections…… 233 23. 6 COMDAT Sections 234 23.7 Sorted Sections……………… 235 23.8 Warning Sections . 235 23.9. frame info sections 236 23.10 Branch islands 236 24 The dld command 239 24.1 The dld Command .. 24.2 Defaults,…..241 24.3 Order on the Command Line 241 25 Linker Command Language 243 25.1 Introduction 243 25.2 Example " bubbledId".......... 244 25.3 Syntax Notation 245 25.4 Pattern Matching in Linker Command Files.... 246 25.5 Numbers e专音 Contents 256 Symbols…....,246 257 Expressions…,… 247 25.8 Command File Structure 248 25.9 MEMORY Command 248 25.10 SECTIONS Command mmmmmmm...... 249 2511 Cache Optimization(CACHE and PROFILE Commands)……………261 2512 Assignment Commands……… 263 2513 Examples…264 PART V, WIND RIVER DIAB COMPILER UTILITIES 26 Utilities .275 26.1 Introduction∴ 275 262 Common command- Line Options…… 275 27 D-AR Archiver 277 271 Synopsis……..1277 27.2 Syntax 27. 3 Description .277 274 Examples…...280 28 D-BCNT Profiling Basic Block Counter. 281 Synopsis………...281 282 Syntax…… 281 28.3 Description 282 28 4 Files 282 28.5 Examples…… 283 28.6 Coverage……...............283 28.7 Notes …284 Wind River Diab Compiler for PowerPC ser's Guide, 5.9 29D- DUMP File dumper………,……………285 291 Synopsis…...........…285 29.2 Syntax 285 29.3 Description…, 285 29. 4 Examples... 290 30 dmake Makefile Utility 293 30.1 Introduction 293 30.2 Installation .. 30.3 Using dmake……… 293 31 WindIss simulator and disassembler 295 31.1 Introduction,…… 295 31.2 Synopsis 295 31.3 Simulator mode 296 31.4 Batch Disassembler mode .. 31.5 Interactive Disassembler mode .. 316 Examples…...... 。;4c。。。由非。。自音·。。,。。4。。看。B。。。自 303 PART VI: C LIBRARY 32 Library Structure, Rebuilding 307 32.1 Introduction 一曲曲中一 307 32.2 Library Structure ...........307 323 Library Sources, Rebuilding the libraries……… 315 33 Header Files 317 33.1 Introduction 317 33.2 Files………1317 33 Defined variables, Types, and Constants………………319

...展开详情
试读 127P Wind River Diab Compiler for PowerPC
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
llm5271 看到楼上的说安装后会自带,到处找没有找到,还是下载了份,很好的资料。
2020-08-26
回复
dddgggbbb 不错,是官方的参考文档。下了才发现跟我电脑上装的WR带的文档是一样的。。。我本来想下一个简单点的版本,这个命令太多了看着头大。
2019-07-04
回复
Ivanflash 五星评价,正需要风河的技术文档
2015-03-29
回复
jacky_hit 对了解diab 编译器有很好的帮助,可以查询一些编译选项的意义,能够更好的理解编译过程
2015-02-13
回复
jeakyfu 很好的数据参考手册。谢谢分享!
2014-01-24
回复
randysoft 非常好,正在准备使用这款工具,可以先熟悉下
2013-09-19
回复
nishenqiang 很好,要的就是这数据手册、、、
2013-08-03
回复
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
关注 私信
上传资源赚钱or赚积分
最新推荐
Wind River Diab Compiler for PowerPC 50积分/C币 立即下载
1/127
Wind River Diab Compiler for PowerPC第1页
Wind River Diab Compiler for PowerPC第2页
Wind River Diab Compiler for PowerPC第3页
Wind River Diab Compiler for PowerPC第4页
Wind River Diab Compiler for PowerPC第5页
Wind River Diab Compiler for PowerPC第6页
Wind River Diab Compiler for PowerPC第7页
Wind River Diab Compiler for PowerPC第8页
Wind River Diab Compiler for PowerPC第9页
Wind River Diab Compiler for PowerPC第10页
Wind River Diab Compiler for PowerPC第11页
Wind River Diab Compiler for PowerPC第12页
Wind River Diab Compiler for PowerPC第13页
Wind River Diab Compiler for PowerPC第14页
Wind River Diab Compiler for PowerPC第15页
Wind River Diab Compiler for PowerPC第16页
Wind River Diab Compiler for PowerPC第17页
Wind River Diab Compiler for PowerPC第18页
Wind River Diab Compiler for PowerPC第19页
Wind River Diab Compiler for PowerPC第20页

试读结束, 可继续阅读

50积分/C币 立即下载 >