汽车编程-TASKING VX-toolset for TriCore User Guide.pdf
《汽车编程-TASKING VX-toolset for TriCore User Guide.pdf》由会员分享,可在线阅读,更多相关《汽车编程-TASKING VX-toolset for TriCore User Guide.pdf(1158页珍藏版)》请在文库网上搜索。
1、TASKING VX-toolset forTriCore User GuideMA160-800 (v6.2r2) March 13, 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
2、, and (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 T
3、ASKING 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
4、other 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.1.1. Half Precision Floating-Point . 31.1.2. Fractional Types . 41.1.3. Packed Data Types . 5
5、1.1.4. Increasing the Alignment: _align() . 61.2. Accessing Memory . 71.2.1. Memory Qualifiers . 71.2.2. Placing an Object at an Absolute Address: _at() . 101.2.3. Accessing Bits . 101.3. Data Type Qualifiers . 121.3.1. Circular Buffers: _circ . 121.3.2. Accessing Hardware from C . 131.3.3. Saturati
6、on: _sat . 151.3.4. External MCS RAM Data References: _mcsram . 151.3.5. External PCP PRAM Data References: _pram . 161.3.6. Shared Data between TriCore and PCP: _share_pcp . 161.4. Multi-Core Support . 181.4.1. Scratchpad RAM . 181.4.2. Program Flash Memory (PFLASH) . 191.4.3. Distributed Local Mem
7、ory Unit SRAM (DLMU) . 201.4.4. Compile Time Core Association . 201.5. Shift JIS Kanji Support . 281.6. Using Assembly in the C Source: _asm() . 291.7. Attributes . 351.8. Pragmas to Control the Compiler . 401.9. Predefined Preprocessor Macros . 471.10. Switch Statement . 491.11. Functions . 501.11.
8、1. Calling Convention . 501.11.2. Register Usage . 521.11.3. Inlining Functions: inline . 531.11.4. Interrupt and Trap Functions . 541.11.5. Intrinsic Functions . 621.12. Compiler Generated Sections . 741.12.1. Rename Sections . 751.12.2. Influence Section Definition . 772. C+ Language . 792.1. C+ L
9、anguage Extension Keywords . 792.2. C+ Dialect Accepted . 792.2.1. Default C+ Mode . 802.2.2. GNU C+ Mode . 812.2.3. Anachronisms Accepted . 822.2.4. Atomic Operations . 832.3. Namespace Support . 852.4.Template Instantiation . 862.4.1. Instantiation Modes . 872.4.2. Instantiation #pragma Directives
10、 . 88iii2.4.3. Implicit Inclusion . 892.5. Inlining Functions . 902.6. Extern Inline Functions . 912.7. Pragmas to Control the C+ Compiler . 912.7.1. C pragmas Supported by the C+ compiler . 922.8. Predefined Macros . 932.9. Precompiled Headers . 972.9.1. Automatic Precompiled Header Processing . 97
11、2.9.2. Manual Precompiled Header Processing . 1002.9.3. Other Ways to Control Precompiled Headers . 1002.9.4. Performance Issues . 1013. Assembly Language . 1033.1. Assembly Syntax . 1033.1.1. Deviations from the Instruction Set Manual . 1043.2. Assembler Significant Characters . 1053.3. Operands of
12、 an Assembly Instruction . 1053.4. Symbol Names . 1063.4.1. Predefined Preprocessor Symbols . 1063.5. Registers . 1073.5.1. Special Function Registers . 1083.6. Assembly Expressions . 1083.6.1. Numeric Constants . 1093.6.2. Strings . 1093.6.3. Expression Operators . 1103.7. Working with Sections . 1
13、113.8. Built-in Assembly Functions . 1133.9. Assembler Directives and Controls . 1263.9.1. Assembler Directives . 1273.9.2. Assembler Controls . 1723.10. Macro Operations . 1883.10.1. Defining a Macro . 1883.10.2. Calling a Macro . 1883.10.3. Using Operators for Macro Arguments . 1894. Using the C C
14、ompiler . 1954.1. Compilation Process . 1954.2. Calling the C Compiler . 1964.3.The C Startup Code . 1984.4. How the Compiler Searches Include Files . 2024.5. Compiling for Debugging . 2024.6. Compiler Optimizations . 2034.6.1. Generic Optimizations (frontend) . 2044.6.2. Core Specific Optimizations
15、 (backend) . 2074.6.3. Optimize for Code Size or Execution Speed . 2104.7. Static Code Analysis . 2134.7.1. C Code Checking: CERT C . 2144.7.2. C Code Checking: MISRA C . 2164.8. C Compiler Error Messages . 2185. Using the C+ Compiler . 2215.1. Calling the C+ Compiler . 2215.2. How the C+ Compiler S
16、earches Include Files . 223ivTASKING VX-toolset for TriCore User Guide5.3. C+ Compiler Error Messages . 2246. Using the Assembler . 2276.1. Assembly Process . 2276.2. Calling the Assembler . 2286.3. How the Assembler Searches Include Files . 2296.4. Assembler Optimizations . 2306.5. Generating a Lis
17、t File . 2316.6. Assembler Error Messages . 2317. Using the Linker . 2337.1. Linking Process . 2347.1.1. Phase 1: Linking . 2357.1.2. Phase 2: Locating . 2367.2. Calling the Linker . 2387.3. Linking with Libraries . 2397.3.1. How the Linker Searches Libraries . 2417.3.2. How the Linker Extracts Obje
18、cts from Libraries . 2427.4. Incremental Linking . 2437.5. Cross-Linking . 2447.6. Linking For a Multi-Core Processor in a Single-Core Configuration . 2457.7. Importing Binary Files . 2457.8. Linker Optimizations . 2467.9. Controlling the Linker with a Script . 2487.9.1. Purpose of the Linker Script
19、 Language . 2487.9.2. Eclipse and LSL . 2487.9.3. Preprocessor Macros in the Linker Script Files . 2507.9.4. Structure of a Linker Script File . 2517.9.5. The Architecture Definition . 2557.9.6. The Derivative Definition . 2597.9.7. The Processor Definition . 2617.9.8.The Memory Definition . 2627.9.
20、9.The Section Layout Definition: Locating Sections . 2647.9.10. Locating in a Multi-core Processor Environment . 2657.9.11. Locating Private Sections in ROM . 2677.9.12. MPU Configuration Data . 2687.9.13. Boot Mode Headers . 2707.9.14. Booting AURIX SCR . 2767.10. Linker Labels . 2767.11. Generatin
21、g a Map File . 2787.12. Linker Error Messages . 2798. Using the Utilities . 2818.1. Control Program . 2818.2. Make Utility amk . 2848.2.1. Makefile Rules . 2848.2.2. Makefile Directives . 2868.2.3. Macro Definitions . 2868.2.4. Makefile Functions . 2888.2.5. Conditional Processing . 2898.2.6. Makefi
22、le Parsing . 2898.2.7. Makefile Command Processing . 2908.2.8. Calling the amk Make Utility . 291vTASKING VX-toolset for TriCore User Guide8.3. Make Utility mktc . 2928.3.1. Calling the Make Utility . 2938.3.2. Writing a Makefile . 2948.4. Eclipse Console Utility . 3038.4.1. Headless Build . 3038.4.
23、2. Generating Makefiles from the Command Line . 3048.5. Archiver . 3068.5.1. Calling the Archiver . 3068.5.2. Archiver Examples . 3088.6. HLL Object Dumper . 3108.6.1. Invocation . 3108.6.2. HLL Dump Output Format . 3108.7. ELF Patch Utility . 3198.7.1. ELF Patch Command File . 3198.7.2. Data Refere
24、nce Modification File . 3208.7.3. ELF Symbol Renaming Command File . 3238.8. Expire Cache Utility . 3258.9. Proftool Utility . 3268.10. Integrated TASKING Safety Checker . 3278.10.1. Invocation . 3278.10.2. Memory Access Checks . 3288.10.3. Define Safety Class Areas and Access Rights . 3408.10.4. Ou
25、tput of the Integrated Safety Checker . 3418.10.5. Integrated Safety Checker Remarks . 3439. Using the Debugger . 3459.1. Reading the Eclipse Documentation . 3459.2. Creating a Customized Debug Configuration . 3459.3. Pipeline and Cache During Debugging . 3529.4. Troubleshooting . 3529.5.TASKING Deb
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 汽车编程-TASKING VX-toolset for TriCore User Guide 汽车 编程 TASKING VX toolset
链接地址:https://www.wenkunet.com/p-6256696.html