没有合适的资源?快使用搜索试试~ 我知道了~
首页ADI DSP汇编指南rev-3.4.pdf
资源详情
资源评论
资源推荐

a
W 5.0
Assembler and Preprocessor Manual
(including the ADSP-BFxxx, ADSP-21xxx, ADSP-TSxxx)
Revision 3.4, May 2010
Part Number
82-000420-04
Analog Devices, Inc.
One Technology Way
Norwood, Mass. 02062-9106

Copyright Information
© 2010 Analog Devices, Inc., ALL RIGHTS RESERVED. This docu-
ment may not be reproduced in any form without prior, express written
consent from Analog Devices, Inc.
Printed in the USA.
Disclaimer
Analog Devices, Inc. reserves the right to change this product without
prior notice. Information furnished by Analog Devices is believed to be
accurate and reliable. However, no responsibility is assumed by Analog
Devices for its use; nor for any infringement of patents or other rights of
third parties which may result from its use. No license is granted by impli-
cation or otherwise under the patent rights of Analog Devices, Inc.
Trademark and Service Mark Notice
The Analog Devices logo, Blackfin, EZ-KIT Lite, SHARC, TigerSHARC,
and VisualDSP++ are registered trademarks of Analog Devices, Inc.
All other brand and product names are trademarks or service marks of
their respective owners.

VisualDSP++ 5.0 Assembler and Preprocessor Manual iii
CONTENTS
PREFACE
Purpose ........................................................................................ xiii
Intended Audience ....................................................................... xiii
Manual Contents ......................................................................... xiv
What’s New in this Manual .......................................................... xiv
Technical or Customer Support .................................................... xiv
Supported Processors ..................................................................... xv
Product Information .................................................................... xvi
Analog Devices Web Site ........................................................ xvi
VisualDSP++ Online Documentation ..................................... xvi
Technical Library CD ............................................................ xvii
EngineerZone ....................................................................... xviii
Social Networking Web Sites ................................................ xviii
Notation Conventions ................................................................ xviii
ASSEMBLER
Assembler Guide ........................................................................... 1-2
Assembler Overview ................................................................ 1-3
Writing Assembly Programs ..................................................... 1-3

Contents
iv VisualDSP++ 5.0 Assembler and Preprocessor Manual
Program Content ................................................................ 1-6
Assembly Instructions ..................................................... 1-6
Assembler Directives ....................................................... 1-6
Preprocessor Commands ................................................. 1-7
Program Structure .............................................................. 1-7
Code File Structure for SHARC Processors .................... 1-10
LDF for SHARC Processors .......................................... 1-11
Code File Structure for TigerSHARC Processors ............ 1-13
LDF for TigerSHARC Processors .................................. 1-14
Code File Structure for Blackfin Processors .................... 1-17
LDF for Blackfin Processors .......................................... 1-18
Program Interfacing Requirements .................................... 1-20
Using Assembler Support for C Structs .................................. 1-21
Preprocessing a Program ........................................................ 1-24
Using Assembler Feature Macros ........................................... 1-25
-D__VISUALDSPVERSION__ Predefined Macro ............ 1-35
Generating Make Dependencies ............................................ 1-37
Reading a Listing File ............................................................ 1-38
Enabling Statistical Profiling for Assembly Functions ............. 1-38
Assembler Syntax Reference ........................................................ 1-41
Assembler Keywords and Symbols ......................................... 1-42
Assembler Expressions ........................................................... 1-54
Assembler Operators ............................................................. 1-55
Numeric Formats .................................................................. 1-60

VisualDSP++ 5.0 Assembler and Preprocessor Manual v
Contents
Representation of Constants in Blackfin ............................ 1-60
Fractional Type Support .................................................... 1-61
1.31 Fracts .................................................................... 1-62
1.0r Special Case ........................................................... 1-63
Fractional Arithmetic .................................................... 1-63
Mixed Type Arithmetic ................................................. 1-63
Comment Conventions ......................................................... 1-64
Conditional Assembly Directives ............................................ 1-64
C Struct Support in Assembly Built-In Functions ................... 1-67
OFFSETOF Built-In Function .......................................... 1-67
SIZEOF Built-In Function ................................................ 1-67
Struct References ................................................................... 1-68
Assembler Directives .............................................................. 1-71
.ALIGN, Specify an Address Alignment ............................. 1-76
.ALIGN_CODE, Specify an Address Alignment ................ 1-78
.ASCII .............................................................................. 1-80
.BYTE, Declare a Byte Data Variable or Buffer .................. 1-81
ASCII String Initialization Support ............................... 1-83
.COMPRESS, Start Compression ...................................... 1-85
.EXTERN, Refer to a Globally Available Symbol ............... 1-86
.EXTERN STRUCT, Refer to a Struct Defined Elsewhere . 1-87
.FILE, Override the Name of a Source File ........................ 1-89
.FILE_ATTR, Create an Attribute in the Object File ......... 1-90
.FORCECOMPRESS, Compress the Next Instruction ....... 1-90
剩余257页未读,继续阅读











安全验证
文档复制为VIP权益,开通VIP直接复制

评论0