汽车编程-TASKING VX-toolset for MCS User Guide.pdf
《汽车编程-TASKING VX-toolset for MCS User Guide.pdf》由会员分享,可在线阅读,更多相关《汽车编程-TASKING VX-toolset for MCS User Guide.pdf(658页珍藏版)》请在文库网上搜索。
1、TASKING VX-toolset for MCSUser GuideMA162-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.1.1. Floating-point Types . 31.2. Special Function Registers . 41.3. Address Space Qualifiers . 5
5、1.4. Shift JIS Kanji Support . 61.5. Using Assembly in the C Source: _asm() . 71.6. Attributes . 131.7. Pragmas to Control the Compiler . 171.8. Predefined Preprocessor Macros . 211.9. Functions . 231.9.1. Calling Convention . 231.9.2. Register Usage . 251.9.3. Stack Usage . 251.9.4. Variable Length
6、 Arrays . 261.9.5. Inlining Functions: inline . 261.9.6. Channel Functions . 281.9.7. Intrinsic Functions . 291.10. Section Naming . 362. Assembly Language . 412.1. Assembly Syntax . 412.2. Assembler Significant Characters . 422.3. Operands of an Assembly Instruction . 432.4. Symbol Names . 432.4.1.
7、 Predefined Preprocessor Symbols . 442.5. Registers . 452.6. Assembly Expressions . 462.6.1. Numeric Constants . 462.6.2. Strings . 472.6.3. Expression Operators . 472.7.Working with Sections . 492.8. Built-in Assembly Functions . 502.9. Assembler Directives and Controls . 562.9.1. Assembler Directi
8、ves . 572.9.2. Assembler Controls . 972.10. Macro Operations . 1082.10.1. Defining a Macro . 1082.10.2. Calling a Macro . 1082.10.3. Using Operators for Macro Arguments . 1092.11. Generic Instructions . 1123. Using the C Compiler . 1153.1. Compilation Process . 1153.2. Calling the C Compiler . 1163.
9、3. How the Compiler Searches Include Files . 1183.4. Compiling for Debugging . 1193.5. Compiler Optimizations . 1203.5.1. Generic Optimizations (frontend) . 1213.5.2. Core Specific Optimizations (backend) . 122iii3.5.3. Optimize for Code Size or Execution Speed . 1243.6. Static Code Analysis . 1273.
10、6.1. C Code Checking: CERT C . 1293.6.2. C Code Checking: MISRA C . 1303.7. C Compiler Error Messages . 1324. Using the Assembler . 1354.1. Assembly Process . 1354.2. Calling the Assembler . 1364.3. How the Assembler Searches Include Files . 1374.4. Generating a List File . 1384.5. Assembler Error M
11、essages . 1395. Using the Linker . 1415.1. Linking Process . 1415.1.1. Phase 1: Linking . 1435.1.2. Phase 2: Locating . 1445.2. Calling the Linker . 1455.3. Linking with Libraries . 1465.3.1. How the Linker Searches Libraries . 1485.3.2. How the Linker Extracts Objects from Libraries . 1495.4. Incre
12、mental Linking . 1495.5. Importing Binary Files . 1505.6. Linker Optimizations . 1505.7. Controlling the Linker with a Script . 1525.7.1. Purpose of the Linker Script Language . 1525.7.2. Eclipse and LSL . 1525.7.3. Preprocessor Macros in the Linker Script Files . 1555.7.4. Structure of a Linker Scr
13、ipt File . 1565.7.5. The Architecture Definition . 1605.7.6. The Derivative Definition . 1625.7.7. The Processor Definition . 1645.7.8.The Memory Definition . 1645.7.9.The Section Layout Definition: Locating Sections . 1665.8. Linker Labels . 1675.9. Generating a Map File . 1685.10. Linker Error Mes
14、sages . 1696. Using the Utilities . 1716.1. Control Program . 1716.2. Make Utility amk . 1736.2.1. Makefile Rules . 1736.2.2. Makefile Directives . 1756.2.3. Macro Definitions . 1756.2.4. Makefile Functions . 1776.2.5. Conditional Processing . 1786.2.6. Makefile Parsing . 1786.2.7. Makefile Command
15、Processing . 1796.2.8. Calling the amk Make Utility . 1806.3. Archiver . 1816.3.1. Calling the Archiver . 1816.3.2. Archiver Examples . 1836.4. HLL Object Dumper . 185ivTASKING VX-toolset for MCS User Guide6.4.1. Invocation . 1856.4.2. HLL Dump Output Format . 1856.5. Bosch MCS Assembly to TASKING A
16、ssembly Converter . 1937. Using the Debugger . 1957.1. Reading the Eclipse Documentation . 1957.2. Creating a Customized Debug Configuration . 1957.3. Troubleshooting . 2017.4.TASKING Debug Perspective . 2027.4.1. Debug View . 2037.4.2. Breakpoints View . 2057.4.3. File System Simulation (FSS) View
17、. 2067.4.4. Disassembly View . 2077.4.5. Expressions View . 2077.4.6. Memory View . 2087.4.7. Compare Application View . 2097.4.8. Heap View . 2097.4.9. Logging View . 2097.4.10. RTOS View . 2097.4.11. Registers View . 2107.4.12.Trace View . 2118. Tool Options . 2138.1. C Compiler Options . 2188.2.
18、Assembler Options . 2758.3. Linker Options . 3148.4. Control Program Options . 3658.5. Parallel Make Utility Options . 4268.6. Archiver Options . 4408.7. HLL Object Dumper Options . 4559. Influencing the Build Time . 4859.1. Optimization Options . 4859.2. Automatic Inlining . 4859.3. Header Files .
19、4859.4. Parallel Build . 4859.5. Section Concatenation . 48610. Libraries . 48710.1. Library Functions . 48710.1.1. assert.h . 48810.1.2. complex.h . 48810.1.3. ctype.h and wctype.h . 48910.1.4. dbg.h . 49010.1.5. errno.h . 49010.1.6. fcntl.h . 49110.1.7. fenv.h . 49110.1.8. float.h . 49210.1.9. int
20、types.h and stdint.h . 49310.1.10. io.h . 49310.1.11. iso646.h . 49410.1.12. limits.h . 49410.1.13. locale.h . 49410.1.14. malloc.h . 495vTASKING VX-toolset for MCS User Guide10.1.15. math.h and tgmath.h . 49510.1.16. setjmp.h . 49910.1.17. signal.h . 49910.1.18. stdarg.h . 50010.1.19. stdbool.h . 5
21、0010.1.20. stddef.h . 50010.1.21. stdint.h . 50110.1.22. stdio.h and wchar.h . 50110.1.23. stdlib.h and wchar.h . 50910.1.24. string.h and wchar.h . 51210.1.25. time.h and wchar.h . 51410.1.26. unistd.h . 51610.1.27. wchar.h . 51710.1.28. wctype.h . 51810.2. C Library Reentrancy . 51911. List File F
22、ormats . 53111.1. Assembler List File Format . 53111.2. Linker Map File Format . 53212. Object File Formats . 54112.1. ELF/DWARF Object Format . 54112.2. Intel Hex Record Format . 54112.3. Motorola S-Record Format . 54412.4. C Array Format . 54613. Linker Script Language (LSL) . 54913.1. Structure o
23、f a Linker Script File . 54913.2. Syntax of the Linker Script Language . 55113.2.1. Preprocessing . 55113.2.2. Lexical Syntax . 55213.2.3. Identifiers and Tags . 55313.2.4. Expressions . 55313.2.5. Built-in Functions . 55413.2.6. LSL Definitions in the Linker Script File . 55613.2.7. Memory and Bus
24、Definitions . 55713.2.8. Architecture Definition . 55913.2.9. Derivative Definition . 56213.2.10. Processor Definition and Board Specification . 56313.2.11. Section Setup . 56313.2.12. Section Layout Definition . 56413.3. Expression Evaluation . 56813.4. Semantics of the Architecture Definition . 56
25、813.4.1. Defining an Architecture . 57013.4.2. Defining Internal Buses . 57013.4.3. Defining Address Spaces . 57113.4.4. Mappings . 57513.5. Semantics of the Derivative Definition . 57813.5.1. Defining a Derivative . 57913.5.2. Instantiating Core Architectures . 57913.5.3. Defining Internal Memory a
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 汽车编程-TASKING VX-toolset for MCS User Guide 汽车 编程 TASKING VX toolset