ccs_asm.pdf | Assembly Language

Please download to get full document.

View again

of 332
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information Report
Category:

Documents

Published:

Views: 50 | Pages: 332

Extension: PDF | Download: 0

Share
Related documents
Description
TMS320C6000 Assembly Language Tools v 7.3 User's Guide Literature Number: SPRU186V July 2011 2 Copyright © 2011, Texas Instruments Incorporated SPRU186V – July 2011 Submit Documentation Feedback Contents ...................................................................................................................................... Introduction to the Software Development Tools ................................................................... 1.1 Software Development Tools Overview
Tags
Transcript
  TMS320C6000 Assembly Language Toolsv 7.3 User ' s Guide Literature Number: SPRU186VJuly 2011  2 SPRU186V  – July 2011 Submit Documentation Feedback  Copyright  ©  2011, Texas Instruments Incorporated  Contents  Preface  ......................................................................................................................................  111 Introduction to the Software Development Tools  ...................................................................  15 1.1 Software Development Tools Overview  ................................................................................  161.2 Tools Descriptions  .........................................................................................................  17 2 Introduction to Object Modules  ...........................................................................................  19 2.1 Sections  .....................................................................................................................  202.2 How the Assembler Handles Sections  ..................................................................................  212.2.1 Uninitialized Sections  ............................................................................................  212.2.2 Initialized Sections  ................................................................................................  222.2.3 Named Sections  ..................................................................................................  232.2.4 Subsections  .......................................................................................................  232.2.5 Section Program Counters  ......................................................................................  242.2.6 Using Sections Directives  .......................................................................................  242.3 How the Linker Handles Sections  .......................................................................................  272.3.1 Default Memory Allocation  ......................................................................................  272.3.2 Placing Sections in the Memory Map  ..........................................................................  282.4 Relocation  ..................................................................................................................  282.5 Run-Time Relocation  ......................................................................................................  302.6 Loading a Program  ........................................................................................................  302.7 Symbols in an Object File  ................................................................................................  312.7.1 External Symbols  .................................................................................................  312.8 Object File Format Specifications  .......................................................................................  32 3 Assembler Description  .......................................................................................................  33 3.1 Assembler Overview  ......................................................................................................  343.2 The Assembler ' s Role in the Software Development Flow  ..........................................................  353.3 Invoking the Assembler  ...................................................................................................  363.4 Controlling Application Binary Interface  ................................................................................  373.5 Naming Alternate Directories for Assembler Input  ....................................................................  373.5.1 Using the --include_path Assembler Option  ..................................................................  383.5.2 Using the C6X_A_DIR Environment Variable  ................................................................  383.6 Source Statement Format  ................................................................................................  403.6.1 Label Field  .........................................................................................................  413.6.2 Mnemonic Field  ...................................................................................................  413.6.3 Unit Specifier Field  ...............................................................................................  423.6.4 Operand Field  .....................................................................................................  423.6.5 Comment Field  ....................................................................................................  423.7 Constants  ...................................................................................................................  433.7.1 Binary Integers  ....................................................................................................  433.7.2 Octal Integers  .....................................................................................................  433.7.3 Decimal Integers  ..................................................................................................  433.7.4 Hexadecimal Integers  ............................................................................................  443.7.5 Character Constants  .............................................................................................  443.7.6 Assembly-Time Constants  ......................................................................................  443.8 Character Strings  ..........................................................................................................  453.9 Symbols  .....................................................................................................................  45 3SPRU186V  – July 2011  Contents Submit Documentation Feedback  Copyright  ©  2011, Texas Instruments Incorporated  www.ti.com 3.9.1 Labels  ..............................................................................................................  453.9.2 Local Labels  .......................................................................................................  453.9.3 Symbolic Constants  ..............................................................................................  483.9.4 Defining Symbolic Constants (--asm_define Option)  ........................................................  483.9.5 Predefined Symbolic Constants  ................................................................................  493.9.6 Register Pairs  .....................................................................................................  513.9.7 Register Quads (C6600 Only)  ..................................................................................  523.9.8 Substitution Symbols  .............................................................................................  523.10 Expressions  ................................................................................................................  533.10.1 Operators  .........................................................................................................  533.10.2 Expression Overflow and Underflow  ..........................................................................  533.10.3 Well-Defined Expressions  ......................................................................................  543.10.4 Conditional Expressions  ........................................................................................  543.10.5 Legal Expressions  ...............................................................................................  543.10.6 Expression Examples  ...........................................................................................  553.11 Built-in Functions and Operators  ........................................................................................  563.11.1 Built-In Math and Trigonometric Functions  ...................................................................  563.11.2 C6x Built-In Operators  ..........................................................................................  573.12 Source Listings  ............................................................................................................  613.13 Debugging Assembly Source  ............................................................................................  633.14 Cross-Reference Listings  .................................................................................................  64 4 Assembler Directives  .........................................................................................................  65 4.1 Directives Summary  .......................................................................................................  664.2 Directives That Define Sections  .........................................................................................  704.3 Directives That Initialize Constants  .....................................................................................  724.4 Directives That Perform Alignment and Reserve Space  .............................................................  734.5 Directives That Format the Output Listings  ............................................................................  744.6 Directives That Reference Other Files  ..................................................................................  754.7 Directives That Enable Conditional Assembly  .........................................................................  764.8 Directives That Define Union or Structure Types  .....................................................................  764.9 Directives That Define Enumerated Types  .............................................................................  774.10 Directives That Define Symbols at Assembly Time  ...................................................................  774.11 Miscellaneous Directives  .................................................................................................  784.12 Directives Reference  ......................................................................................................  79 5 Macro Description  ............................................................................................................  143 5.1 Using Macros  .............................................................................................................  1445.2 Defining Macros  ..........................................................................................................  1445.3 Macro Parameters/Substitution Symbols  .............................................................................  1465.3.1 Directives That Define Substitution Symbols  ................................................................  1475.3.2 Built-In Substitution Symbol Functions  .......................................................................  1485.3.3 Recursive Substitution Symbols  ..............................................................................  1495.3.4 Forced Substitution  .............................................................................................  1495.3.5 Accessing Individual Characters of Subscripted Substitution Symbols  ..................................  1505.3.6 Substitution Symbols as Local Variables in Macros  ........................................................  1515.4 Macro Libraries  ...........................................................................................................  1515.5 Using Conditional Assembly in Macros  ...............................................................................  1525.6 Using Labels in Macros  .................................................................................................  1545.7 Producing Messages in Macros  ........................................................................................  1555.8 Using Directives to Format the Output Listing  .......................................................................  1565.9 Using Recursive and Nested Macros  .................................................................................  1575.10 Macro Directives Summary  .............................................................................................  159 6 Archiver Description  ........................................................................................................  161 4  Contents   SPRU186V  – July 2011 Submit Documentation Feedback  Copyright  ©  2011, Texas Instruments Incorporated
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks
SAVE OUR EARTH

We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

More details...

Sign Now!

We are very appreciated for your Prompt Action!

x