汽车编程-TASKING VX-toolset for 8051 User Guide.pdf
《汽车编程-TASKING VX-toolset for 8051 User Guide.pdf》由会员分享,可在线阅读,更多相关《汽车编程-TASKING VX-toolset for 8051 User Guide.pdf(714页珍藏版)》请在文库网上搜索。
1、TASKING VX-toolset for 8051User GuideMA164-800 (v6.2r2) March 12, 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, a
2、nd (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 TASK
3、ING 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 oth
4、er 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. Accessing Memory . 31.2.1. Memory Type Qualifiers . 31.2.2. Memory Models . 51.2.3. Placing a
5、n Object at an Absolute Address: _at() . 71.2.4. Accessing Bits . 81.2.5. Accessing Hardware from C: _sfr, _bsfr . 101.3. Shift JIS Kanji Support . 111.4. Using Assembly in the C Source: _asm() . 121.5. Attributes . 191.6. Pragmas to Control the Compiler . 231.7. Predefined Preprocessor Macros . 281
6、.8.Variables . 291.8.1. Automatic Variables . 291.8.2. Initialized Variables . 301.8.3. Non-Initialized Variables . 301.9. Strings . 301.10. Switch Statement . 321.11. Functions . 331.11.1. Calling Convention . 331.11.2. Stack Usage . 341.11.3. Register Usage . 371.11.4. Inlining Functions: inline .
7、 381.11.5. Interrupt Functions . 391.11.6. Intrinsic Functions . 421.12. Section Naming . 452. Assembly Language . 472.1. Assembly Syntax . 472.2. Assembler Significant Characters . 482.3. Operands of an Assembly Instruction . 492.4. Symbol Names . 492.4.1. Predefined Preprocessor Symbols . 502.5. R
8、egisters . 512.6. Special Function Registers . 512.7. Assembly Expressions . 522.7.1. Numeric Constants . 532.7.2. Strings . 532.7.3. Expression Operators . 542.7.4. Symbol Types and Expression Types . 552.8. Macro Preprocessing . 562.8.1. Defining and Calling Macros . 572.8.2. Local Symbols in Macr
9、os . 602.8.3. Built-in Macro Preprocessing Functions . 612.8.4. Macro Delimiters . 912.8.5. Literal Mode versus Normal Mode . 942.8.6. Algorithm for Evaluating Macro Calls . 962.9. Assembler Directives and Controls . 97iii2.9.1. Assembler Directives . 982.9.2. Assembler Controls . 1232.10. Generic I
10、nstructions . 1463. Using the C Compiler . 1473.1. Compilation Process . 1473.2. Calling the C Compiler . 1483.3.The C Startup Code . 1503.4. How the Compiler Searches Include Files . 1523.5. Compiling for Debugging . 1533.6. Compiler Optimizations . 1543.6.1. Generic Optimizations (frontend) . 1553
11、.6.2. Core Specific Optimizations (backend) . 1563.6.3. Optimize for Code Size or Execution Speed . 1573.7. Static Code Analysis . 1593.7.1. C Code Checking: CERT C . 1603.7.2. C Code Checking: MISRA C . 1623.8. C Compiler Error Messages . 1644. Profiling . 1674.1. What is Profiling? . 1674.2. Profi
12、ling at Compile Time (Static Profiling) . 1684.2.1. Step 1: Build your Application with Static Profiling . 1684.2.2. Step 2: Displaying Static Profiling Results . 1695. Using the Assembler . 1735.1. Assembly Process . 1735.2. Calling the Assembler . 1745.3. How the Assembler Searches Include Files .
13、 1755.4. Assembler Optimizations . 1765.5. Generating a List File . 1775.6. Assembler Error Messages . 1776. Using the Linker . 1796.1. Linking Process . 1796.1.1. Phase 1: Linking . 1816.1.2. Phase 2: Locating . 1826.2. Calling the Linker . 1836.3. Linking with Libraries . 1846.3.1. How the Linker
14、Searches Libraries . 1866.3.2. How the Linker Extracts Objects from Libraries . 1876.4. Incremental Linking . 1876.5. Importing Binary Files . 1886.6. Linker Optimizations . 1896.7. Controlling the Linker with a Script . 1906.7.1. Purpose of the Linker Script Language . 1906.7.2. Eclipse and LSL . 1
15、916.7.3. Structure of a Linker Script File . 1936.7.4. The Architecture Definition . 1966.7.5. The Derivative Definition . 1986.7.6. The Processor Definition . 2006.7.7.The Memory Definition . 2006.7.8.The Section Layout Definition: Locating Sections . 2026.8. Linker Labels . 203ivTASKING VX-toolset
16、 for 8051 User Guide6.9. Generating a Map File . 2056.10. Linker Error Messages . 2067. Using the Utilities . 2097.1. Control Program . 2097.2. Make Utility amk . 2117.2.1. Makefile Rules . 2117.2.2. Makefile Directives . 2137.2.3. Macro Definitions . 2137.2.4. Makefile Functions . 2167.2.5. Conditi
17、onal Processing . 2167.2.6. Makefile Parsing . 2177.2.7. Makefile Command Processing . 2187.2.8. Calling the amk Make Utility . 2197.3. Make Utility mk51 . 2207.3.1. Calling the Make Utility . 2217.3.2. Writing a Makefile . 2227.4. Archiver . 2317.4.1. Calling the Archiver . 2317.4.2. Archiver Examp
18、les . 2337.5. HLL Object Dumper . 2357.5.1. Invocation . 2357.5.2. HLL Dump Output Format . 2357.6. Expire Cache Utility . 2418. Using the Debugger . 2438.1. Reading the Eclipse Documentation . 2438.2. Debugging an 8051 Project . 2438.3. Creating a Customized Debug Configuration . 2448.4. Troublesho
19、oting . 2518.5.TASKING Debug Perspective . 2518.5.1. Debug View . 2528.5.2. Breakpoints View . 2548.5.3. File System Simulation (FSS) View . 2558.5.4. Disassembly View . 2568.5.5. Expressions View . 2568.5.6. Memory View . 2578.5.7. Compare Application View . 2588.5.8. Heap View . 2588.5.9. Logging
20、View . 2598.5.10. RTOS View . 2598.5.11. Registers View . 2598.5.12.Trace View . 2609. Tool Options . 2619.1. Configuring the Command Line Environment . 2659.2. C Compiler Options . 2679.3. Assembler Options . 3379.4. Linker Options . 3829.5. Control Program Options . 4269.6. Make Utility Options .
21、4829.7. Parallel Make Utility Options . 5109.8. Archiver Options . 524vTASKING VX-toolset for 8051 User Guide9.9. HLL Object Dumper Options . 5399.10. Expire Cache Utility Options . 56210. Influencing the Build Time . 57310.1. Optimization Options . 57310.2. Automatic Inlining . 57310.3. Code Compac
22、tion . 57310.4. Compiler Cache . 57310.5. Header Files . 57410.6. Parallel Build . 57410.7. Number of Sections . 57511. Libraries . 57711.1. Library Functions . 57711.1.1. assert.h . 57811.1.2. ctype.h and wctype.h . 57811.1.3. dbg.h . 57911.1.4. errno.h . 57911.1.5. fcntl.h . 58011.1.6. fenv.h . 58
23、011.1.7. float.h . 58111.1.8. inttypes.h and stdint.h . 58211.1.9. io.h . 58211.1.10. iso646.h . 58211.1.11. limits.h . 58311.1.12. locale.h . 58311.1.13. malloc.h . 58311.1.14. math.h and tgmath.h . 58411.1.15. setjmp.h . 58811.1.16. signal.h . 58811.1.17. stdarg.h . 58911.1.18. stdbool.h . 58911.1
24、.19. stddef.h . 59011.1.20. stdint.h . 59011.1.21. stdio.h and wchar.h . 59011.1.22. stdlib.h and wchar.h . 59811.1.23. string.h and wchar.h . 60111.1.24. time.h and wchar.h . 60211.1.25. unistd.h . 60511.1.26. wchar.h . 60611.1.27. wctype.h . 60711.2. C Library Reentrancy . 60712. List File Formats
25、 . 61912.1. Assembler List File Format . 61912.2. Linker Map File Format . 62013. Object File Formats . 62513.1. ELF/DWARF Object Format . 62513.2. Intel Hex Record Format . 62513.3. Motorola S-Record Format . 62814. Linker Script Language (LSL) . 63114.1. Structure of a Linker Script File . 63114.2
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
0人已下载
免费下载 | 加入VIP,免费下载 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 汽车编程-TASKING VX-toolset for 8051 User Guide 汽车 编程 TASKING VX toolset