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 implication or otherwise under the patent rights of Analog Devices, Inc.
Trademark and Service Mark Notice
The Analog Devices logo, the CROSSCORE logo, VisualDSP++,
Blackfin, SHARC, TigerSHARC, and EZ-KIT Lite are registered trademarks of Analog Devices, Inc.
All other brand and product names are trademarks or service marks of
their respective owners.
CONTENTS
PREFACE
Purpose of This Manual ................................................................. xix
Intended Audience ......................................................................... xix
Manual Contents ............................................................................ xx
What’s New in This Manual ........................................................... xxi
Technical or Customer Support ..................................................... xxii
Linking for Overlay Memory ...................................................... D-13
LDF PROGRAMMING EXAMPLES FOR BLACKFIN
VisualDSP++ 4.0 Linker and Utilities Manual xvii
PROCESSORS
Linking for a Single-Processor System ........................................... E-2
Linking Large Uninitialized or Zero-initialized Variables ................ E-4
Linking for Assembly Source File .................................................. E-6
Linking for C Source File – Example 1 .......................................... E-8
Linking for Complex C Source File – Example 2 ......................... E-11
Linking for Overlay Memory ...................................................... E-17
INDEX
xviiiVisualDSP++ 4.0 Linker and Utilities Manual
PREFACE
Thank you for purchasing Analog Devices development software for digital signal processors (DSPs).
Purpose of This Manual
The VisualDSP++ 4.0 Linker and Utilities Manual contains information
about the linker and utilities programs for 16-bit fixed-point Blackfin®
(ADSP-BFxxx) processors, and 32-bit (floating-point and fixed-point)
TigerSHARC® (ADSP-TSxxx) and SHARC® (ADSP-21xxx) processors
which set a new standard of performance for digital signal processors,
combining multiple computation units for floating-point and fixed-point
processing as well as wide word width.
This manual provides information on the linking process and describes
the syntax for the linker’s command language—a scripting language that
the linker reads from the linker description file. The manual leads you
through using the linker, archiver, and utilities to produce DSP programs
and provides reference information on the file utility software.
Intended Audience
The primary audience for this manual is a programmer who is familiar
with Analog Devices processors. This manual assumes that the audience
has a working knowledge of the appropriate processor architecture and
instruction set. Programmers who are unfamiliar with Analog Devices
VisualDSP++ 4.0 Linker and Utilities Manual xix
Manual Contents
processors can use this manual, but should supplement it with other texts
(such as the appropriate hardware reference and programming reference
manuals) that describe your target architecture.
Manual Contents
The manual contains:
•Chapter 1, “Introduction”
This chapter provides an overview of the linker and utilities.
•Chapter 2, “Linker”
This chapter describes how to combine object files into reusable
library files to link routines referenced by other object files.
•Chapter 3, “Linker Description File”
This chapter describes how to write an .LDF file to define the
target.
•Chapter 4, “Expert Linker”
This chapter describes Expert Linker, which is an interactive
graphical tool to set up and map processor memory.
•Chapter 5, “Memory Overlays and Advanced LDF Commands”
This chapter describes how overlays and advanced LDF commands
are used for memory management.
•Chapter 6 “Archiver”
This chapter describes the
object files into library files, which serve as reusable resources for
code development.
•Chapter 7 “Memory Initializer”
This chapter describes the Memory Initializer utility that is used to
generate a single initialization stream and save it in a section in the
output executable file.
xxVisualDSP++ 4.0 Linker and Utilities Manual
elfar archiver utility used to combine
Preface
•Appendix A, “File Formats”
This appendix lists and describes the file formats that the development tools use as inputs or produce as outputs.
•Appendix B, “Utilities”
This appendix describes the utilities that provide legacy and file
conversion support.
•Appendix C, “LDF Programming Examples for TigerSHARC Pro-
cessors”
This appendix provides code examples of .LDF files used with
TigerSHARC processors.
• Appendix D, “LDF Programming Examples for SHARC Proces-
sors”
This appendix provides code examples of .LDF files used with
SHARC processors.
• Appendix E, “LDF Programming Examples for Blackfin Proces-
sors”
This appendix provides code examples of .LDF files used with
Blackfin processors.
What’s New in This Manual
This is a new manual that documents linking support for all currently
available Analog Devices 32-bit floating-point and fixed-point SHARC
and TigerSHARC
processors.
Loader/splitter information is now available in a separate Loader manual.
Refer to VisualDSP++ 4.0 Product Bulletin for information on all new and
updated features and other release information.
VisualDSP++ 4.0 Linker and Utilities Manual xxi
processors, as well as 16-bit fixed-point Blackfin
Technical or Customer Support
Technical or Customer Support
You can reach Analog Devices, Inc. Customer Support in the following
ways:
•Visit the Embedded Processing and DSP products Web site at
http://www.analog.com/processors/technicalSupport
•E-mail tools questions to
dsptools.support@analog.com
•E-mail processor questions to
dsp.support@analog.com
•Phone questions to 1-800-ANALOGD
•Contact your Analog Devices, Inc. local sales office or authorized
distributor
•Send questions by mail to:
Analog Devices, Inc.
One Technology Way
P.O. Box 9106
Norwood, MA 02062-9106
USA
xxiiVisualDSP++ 4.0 Linker and Utilities Manual
Preface
Supported Processors
The following is the list of Analog Devices, Inc. processors supported in
VisualDSP++ 4.0.
TigerSHARC (ADSP-TSxxx) Processors
The name “TigerSHARC” refers to a family of floating-point and
fixed-point [8-bit, 16-bit, and 32-bit] processors. VisualDSP++ currently
supports the following TigerSHARC processors:
ADSP-TS101 ADSP-TS201ADSP-TS202ADSP-TS203
SHARC (ADSP-21xxx) Processors
The name “SHARC” refers to a family of high-performance, 32-bit,
floating-point processors that can be used in speech, sound, graphics, and
imaging applications. VisualDSP++ currently supports the following
SHARC processors:
ADSP-21020ADSP-21060ADSP-21061ADSP-21062
ADSP-21065LADSP-21160ADSP-21161ADSP-21261
ADSP-21262ADSP-21266ADSP-21267ADSP-21363
ADSP-21364ADSP-21365ADSP-21366ADSP-21367
ADSP-21368ADSP-21369
VisualDSP++ 4.0 Linker and Utilities Manual xxiii
Product Information
Blackfin (ADSP-BFxxx) Processors
The name “Blackfin” refers to a family of 16-bit, embedded processors.
VisualDSP++ currently supports the following Blackfin processors:
ADSP-BF531ADSP-BF532 (formerly ADSP-21532)
ADSP-BF533ADSP-BF535 (formerly ADSP-21535)
ADSP-BF536ADSP-BF537
ADSP-BF538ADSP-BF539
ADSP-BF561ADSP-BF566
AD6532
Product Information
You can obtain product information from the Analog Devices Web site,
from the product CD-ROM, or from the printed publications (manuals).
Analog Devices is online at www.analog.com. Our Web site provides information about a broad range of products—analog integrated circuits,
amplifiers, converters, and digital signal processors.
MyAnalog.com
MyAnalog.com is a free feature of the Analog Devices Web site that allows
customization of a Web page to display only the latest information on
products you are interested in. You can also choose to receive weekly
e-mail notifications containing updates to the Web pages that meet your
interests. MyAnalog.com provides access to books, application notes, data
sheets, code examples, and more.
xxivVisualDSP++ 4.0 Linker and Utilities Manual
Preface
Registration
Visit www.myanalog.com to sign up. Click Register to use MyAnalog.com.
Registration takes about five minutes and serves as a means to select the
information you want to receive.
If you are already a registered user, just log on. Your user name is your
e-mail address.
Processor Product Information
For information on embedded processors and DSPs, visit our Web site at
www.analog.com/processors, which provides access to technical publica-
tions, data sheets, application notes, product overviews, and product
announcements.
You may also obtain additional information about Analog Devices and its
products in any of the following ways.
•E-mail questions or requests for information to
dsp.support@analog.com
•Fax questions or requests for information to
1-781-461-3010 (North America)
089/76 903-557 (Europe)
•Access the FTP Web site at
ftp ftp.analog.com or ftp 137.71.23.21
ftp://ftp.analog.com
VisualDSP++ 4.0 Linker and Utilities Manual xxv
Product Information
Related Documents
For information on product related development software, see these
publications:
•VisualDSP++ 4.0 Getting Started Guide
•VisualDSP++ 4.0 User’s Guide
•VisualDSP++ 4.0 C/C++ Compiler and Library Manual for SHARC
Processors
•VisualDSP++ 4.0 C/C++ Compiler and Library Manual for
TigerSHARC Processors
•VisualDSP++ 4.0 C/C++ Compiler and Library Manual for Blackfin
Processors
•VisualDSP++ 4.0 Assembler and Preprocessor Manual
•VisualDSP++ 4.0 Linker and Utilities Manual
•VisualDSP++ 4.0 Product Release Bulletin
•VisualDSP++ Kernel (VDK) User’s Guide
•Quick Installation Reference Card
For hardware information, refer to your processors’s hardware reference,
programming reference, or data sheet. All documentation is available
online. Most documentation is available in printed form.
Visit the Technical Library Web site to access all processor and tools manuals and data sheets:
Online documentation includes the VisualDSP++ Help system, software
tools manuals, hardware tools manuals, processor manuals, Dinkum
Abridged C++ library, and Flexible License Manager (FlexLM) network
license manager software documentation. You can easily search across the
entire VisualDSP++ documentation set for any topic of interest using the
Search function of VisualDSP++ Help system. For easy printing, supplementary .PDF files of most manuals are also provided.
Each documentation file type is described as follows.
File Description
.CHMHelp system files and manuals in Help format
.HTM or
.HTML
.PDFVisualDSP++ and processor manuals in Portable Documentation Format (PDF).
Dinkum Abridged C++ library and FlexLM network license manager software documentation. Viewing and printing the .HTML files requires a browser, such as
Internet Explorer 4.0 (or higher).
Viewing and printing the .PDF files requires a PDF reader, such as Adobe Acrobat
Reader (4.0 or higher).
Access the online documentation from the VisualDSP++ environment,
Windows® Explorer, or the Analog Devices Web site.
Accessing Documentation From VisualDSP++
From the VisualDSP++ environment:
•Access VisualDSP++ online Help from the Help menu’s Contents, Search, and Index commands.
•Open online Help from context-sensitive user interface items (toolbar buttons, menu commands, and windows).
VisualDSP++ 4.0 Linker and Utilities Manual xxvii
Product Information
Accessing Documentation From Windows
In addition to any shortcuts you may have constructed, there are many
ways to open VisualDSP++ online Help or the supplementary documentation from Windows.
Help system files (.CHM) are located in the Help folder of VisualDSP++
environment. The .PDF files are located in the Docs folder of your
VisualDSP++ installation CD-ROM. The Docs folder also contains the
Dinkum Abridged C++ library and the FlexLM network license manager
software documentation.
Using Windows Explorer
•Double-click the vdsp-help.chm file, which is the master Help system, to access all the other .CHM files.
•Open your VisualDSP++ installation CD-ROM and double-click
any file that is part of the VisualDSP++ documentation set.
Using the Windows Start Button
•Access VisualDSP++ online Help by clicking the Start button and
choosing Programs, Analog Devices, VisualDSP++, and
VisualDSP++ Documentation.
Accessing Documentation From the Web
Download manuals in PDF format at the following Web site:
Select a processor family and book title. Download archive (.ZIP) files, one
for each manual. Use any archive management software, such as WinZip,
to decompress downloaded files.
xxviiiVisualDSP++ 4.0 Linker and Utilities Manual
Preface
Printed Manuals
For general questions regarding literature ordering, call the Literature
Center at 1-800-ANALOGD (1-800-262-5643) and follow the prompts.
VisualDSP++ Documentation Set
To purchase VisualDSP++ manuals, call 1-603-883-2430. The manuals
may be purchased only as a kit.
If you do not have an account with Analog Devices, you are referred to
Analog Devices distributors. For information on our distributors, log onto
http://www.analog.com/salesdir/continent.asp.
Hardware Tools Manuals
To purchase EZ-KIT Lite® and In-Circuit Emulator (ICE) manuals, call
1-603-883-2430. The manuals may be ordered by title or by product
number located on the back cover of each manual.
Processor Manuals
Hardware reference and instruction set reference manuals may be ordered
through the Literature Center at 1-800-ANALOGD (1-800-262-5643),
or downloaded from the Analog Devices Web site. Manuals may be
ordered by title or by product number located on the back cover of each
manual.
Data Sheets
All data sheets (preliminary and production) may be downloaded from the
Analog Devices Web site. Only production (final) data sheets (Rev. 0, A,
B, C, and so on) can be obtained from the Literature Center at
1-800-ANALOGD (1-800-262-5643); they also can be downloaded from
the Web site.
VisualDSP++ 4.0 Linker and Utilities Manual xxix
Notation Conventions
To have a data sheet faxed to you, call the Analog Devices Faxback System
at 1-800-446-6212. Follow the prompts and a list of data sheet code
numbers will be faxed to you. If the data sheet you want is not listed,
check for it on the Web site.
Notation Conventions
Text conventions used in this manual are identified and described as
follows.
L
ExampleDescription
Close command
(File menu)
{this | that}Alternative required items in syntax descriptions appear within curly
[this | that]Optional items in syntax descriptions appear within brackets and sepa-
[this,…]Optional item lists in syntax descriptions appear within brackets
.SECTIONCommands, directives, keywords, and feature names are in text with
filenameNon-keyword placeholders appear in text with italic style format.
appear throughout this document.
Titles in reference sections indicate the location of an item within the
VisualDSP++ environment’s menu system (for example, the Close
command appears on the File menu).
brackets and separated by vertical bars; read the example as this or
that. One or the other is required.
rated by vertical bars; read the example as an optional this or that.
delimited by commas and terminated with an ellipse; read the example
as an optional comma-separated list of
letter gothic font.
this.
Additional conventions, which apply only to specific chapters, may
xxxVisualDSP++ 4.0 Linker and Utilities Manual
Loading...
+ 382 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.