汽车编程-TASKING VX-toolset for ARM User Guide.pdf
《汽车编程-TASKING VX-toolset for ARM User Guide.pdf》由会员分享,可在线阅读,更多相关《汽车编程-TASKING VX-toolset for ARM User Guide.pdf(874页珍藏版)》请在文库网上搜索。
1、TASKING VX-toolset for ARMUser GuideMA163-800 (v6.2r2) March 06, 2018Copyright 2018 TASKING BV.All rights reserved.You are permitted to print this document provided that (1) the use of such is for personal use onlyand will not be copied or posted on any network computer or broadcast in any media, an
2、d (2) no modifications of thedocument is made. Unauthorized duplication, in whole or part, of this document by any means, mechanical or electronic,including translation into another language, except for brief excerpts in published reviews, is prohibited without theexpress written permission of TASKI
3、NG BV. Unauthorized duplication of this work may also be prohibited by localstatute.Violators may be subject to both criminal and civil penalties, including fines and/or imprisonment. Altium,TASKING, and their respective logos are registered trademarks of Altium Limited or its subsidiaries. All othe
4、r registeredor unregistered trademarks referenced herein are the property of their respective owners and no trademark rights tothe same are claimed.Table of Contents1. C Language . 11.1. Data Types . 11.2. Changing the Alignment: _unaligned, _packed_ and _align() . 21.3. Placing an Object at an Abso
5、lute Address: _at() . 31.4. Accessing Hardware from C . 41.5. Shift JIS Kanji Support . 51.6. Using Assembly in the C Source: _asm() . 61.7. Attributes . 121.8. Pragmas to Control the Compiler . 151.9. Predefined Preprocessor Macros . 211.10. Switch Statement . 221.11. Functions . 241.11.1. Calling
6、Convention . 241.11.2. Inlining Functions: inline . 241.11.3. Interrupt Functions / Exception Handlers . 261.11.4. Intrinsic Functions . 282. C+ Language . 392.1. C+ Language Extension Keywords . 392.2. C+ Dialect Accepted . 392.2.1. Default C+ Mode . 402.2.2. GNU C+ Mode . 412.2.3. Anachronisms Acc
7、epted . 422.3. Namespace Support . 432.4.Template Instantiation . 452.4.1. Instantiation Modes . 462.4.2. Instantiation #pragma Directives . 462.4.3. Implicit Inclusion . 482.5. Inlining Functions . 482.6. Extern Inline Functions . 492.7. Pragmas to Control the C+ Compiler . 502.8. C pragmas Support
8、ed by the C+ compiler . 502.9. Predefined Macros . 512.10. Precompiled Headers . 552.10.1. Automatic Precompiled Header Processing . 552.10.2. Manual Precompiled Header Processing . 582.10.3. Other Ways to Control Precompiled Headers . 582.10.4. Performance Issues . 593. Assembly Language . 613.1. A
9、ssembly Syntax . 613.2. Assembler Significant Characters . 623.3. Operands of an Assembly Instruction . 633.4. Symbol Names . 633.4.1. Predefined Preprocessor Symbols . 643.5. Registers . 653.6. Assembly Expressions . 653.6.1. Numeric Constants . 663.6.2. Strings . 663.6.3. Expression Operators . 67
10、iii3.7.Working with Sections . 683.8. Built-in Assembly Functions . 693.9. Assembler Directives . 743.9.1. Overview of Assembler Directives . 753.9.2. Detailed Description of Assembler Directives . 763.10. Macro Operations . 1163.10.1. Defining a Macro . 1163.10.2. Calling a Macro . 1163.10.3. Using
11、 Operators for Macro Arguments . 1173.11. Generic Instructions . 1203.11.1. ARM Generic Instructions . 1203.11.2. ARM and Thumb-2 32-bit Generic Instructions . 1213.11.3.Thumb 16-bit Generic Instructions . 1234. Using the C Compiler . 1254.1. Compilation Process . 1254.2. Calling the C Compiler . 12
12、64.3. How the Compiler Searches Include Files . 1284.4. Compiling for Debugging . 1294.5. Compiler Optimizations . 1304.5.1. Generic Optimizations (frontend) . 1314.5.2. Core Specific Optimizations (backend) . 1344.5.3. Optimize for Code Size or Execution Speed . 1364.6. Static Code Analysis . 1394.
13、6.1. C Code Checking: CERT C . 1404.6.2. C Code Checking: MISRA C . 1424.7. C Compiler Error Messages . 1445. Using the C+ Compiler . 1475.1. Calling the C+ Compiler . 1475.2. How the C+ Compiler Searches Include Files . 1495.3. C+ Compiler Error Messages . 1506. Using the Assembler . 1536.1. Assemb
14、ly Process . 1536.2. Assembler Versions . 1546.3. Calling the Assembler . 1546.4. How the Assembler Searches Include Files . 1566.5. Generating a List File . 1566.6. Assembler Error Messages . 1577. Using the Linker . 1597.1. Linking Process . 1597.1.1. Phase 1: Linking . 1617.1.2. Phase 2: Locating
15、 . 1627.2. Calling the Linker . 1637.3. Linking with Libraries . 1647.3.1. How the Linker Searches Libraries . 1677.3.2. How the Linker Extracts Objects from Libraries . 1687.4. Incremental Linking . 1687.5. Importing Binary Files . 1697.6. Linker Optimizations . 1707.7. Controlling the Linker with
16、a Script . 1717.7.1. Purpose of the Linker Script Language . 171ivTASKING VX-toolset for ARM User Guide7.7.2. Eclipse and LSL . 1727.7.3. Structure of a Linker Script File . 1747.7.4. The Architecture Definition . 1777.7.5. The Derivative Definition . 1797.7.6. The Processor Definition . 1807.7.7.Th
17、e Memory Definition . 1807.7.8.The Section Layout Definition: Locating Sections . 1827.8. Linker Labels . 1847.9. Generating a Map File . 1857.10. Linker Error Messages . 1868. Run-time Environment . 1898.1. Startup Code . 1898.2. Reset Handler and Vector Table . 1908.3. CMSIS Support . 1948.4. Stac
18、k and Heap . 1959. Using the Utilities . 1999.1. Control Program . 1999.2. Make Utility amk . 2019.2.1. Makefile Rules . 2019.2.2. Makefile Directives . 2039.2.3. Macro Definitions . 2039.2.4. Makefile Functions . 2059.2.5. Conditional Processing . 2069.2.6. Makefile Parsing . 2069.2.7. Makefile Com
19、mand Processing . 2079.2.8. Calling the amk Make Utility . 2089.3. Eclipse Console Utility . 2099.3.1. Headless Build . 2099.3.2. Generating Makefiles from the Command Line . 2109.4. Archiver . 2129.4.1. Calling the Archiver . 2129.4.2. Archiver Examples . 2149.5. HLL Object Dumper . 2169.5.1. Invoc
20、ation . 2169.5.2. HLL Dump Output Format . 2169.6. Expire Cache Utility . 22310. Using the Debugger . 22510.1. Reading the Eclipse Documentation . 22510.2. Creating a Customized Debug Configuration . 22510.3.Troubleshooting . 23210.4.TASKING Debug Perspective . 23210.4.1. Debug View . 23310.4.2. Bre
21、akpoints View . 23510.4.3. File System Simulation (FSS) View . 23610.4.4. Disassembly View . 23710.4.5. Expressions View . 23710.4.6. Memory View . 23810.4.7. Compare Application View . 23910.4.8. Heap View . 23910.4.9. Logging View . 240vTASKING VX-toolset for ARM User Guide10.4.10. RTOS View . 240
22、10.4.11. Registers View . 24010.4.12. Trace View . 24210.5. Programming a Flash Device . 24211.Tool Options . 24711.1. Configuring the Command Line Environment . 25411.2. C Compiler Options . 25511.3. C+ Compiler Options . 33111.4. Assembler Options . 46911.5. Linker Options . 51111.6. Control Progr
23、am Options . 56511.7. Parallel Make Utility Options . 63611.8. Archiver Options . 65011.9. HLL Object Dumper Options . 66511.10. Expire Cache Utility Options . 69012. Influencing the Build Time . 70112.1. MIL Linking . 70112.2. Optimization Options . 70112.3. Automatic Inlining . 70212.4. Code Compa
24、ction . 70212.5. Compiler Cache . 70212.6. Header Files . 70312.7. Parallel Build . 70312.8. Number of Sections . 70413. Profiling . 70513.1. What is Profiling? . 70513.1.1. Methods of Profiling . 70513.2. Profiling using Code Instrumentation (Dynamic Profiling) . 70613.2.1. Step 1: Build your Appli
25、cation for Profiling . 70713.2.2. Step 2: Execute the Application . 70913.2.3. Step 3: Displaying Profiling Results . 71113.3. Profiling at Compile Time (Static Profiling) . 71413.3.1. Step 1: Build your Application with Static Profiling . 71413.3.2. Step 2: Displaying Static Profiling Results . 715
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 汽车编程-TASKING VX-toolset for ARM User Guide 汽车 编程 TASKING VX toolset