![Texas Instruments TMS320C80 Скачать руководство пользователя страница 46](http://html.mh-extra.com/html/texas-instruments/tms320c80/tms320c80_user-manual_1094755046.webp)
Prototyping Code Using Linker Command Files
3-6
TMS320C80 to TMS320C82 Software Compatibility User’s Guide
3.4 Prototyping Code Using Linker Command Files
Linker command files allow you to put linking information in a file;
these files are useful because they allow you to use MEMORY
and SECTIONS directives to customize memory allocation for
your application. In this case, you can specify the location of the
parameter and data RAMs for the processor you are using to
execute your software. By using linker command files to develop
code for the ’C82 on the ’C80, you do not need to modify your as-
sembly or C code.
This method of emulating the ’C82 on a ’C80 requires that you
use different linker command files for the ’C80 and ’C82. Thus,
although the code is not binary-compatible, it is made compatible
through linking.
The basic procedure for using this method requires three steps:
1) Write your code, taking into account the considerations dis-
cussed in this chapter.
2) Link your code with a linker command file for the ’C80 and
then test your code on the ’C80.
3) Link your code with a linker command file for the ’C82 when
you are ready to use that device.
The software tools for the ’C80 and ’C82 come with template link-
er command files that you will need to modify according to the re-
quirements of your program.
For a list of linker directives, see Section 13.4,
Linker Command
Files, in the TMS320C80 (MVP) Code Generation Tools User’s
Guide.
3.4.1 PP-Relative Addressing
One linker command file can be used for linking code so that it
can be executed by all PPs in each device. This is possible be-
cause PP addresses can be specified using offsets.
In order to make this approach work on the PPs, your code must
use PP-relative addressing to access memory.
PP-relative addressing allows the base address for a PP’s local
data RAM 0 or local parameter RAM to be used for address gen-
eration. PP-relative addressing is specified with the keyword
dba, pba, or xba, where dba is the base address beginning at
data RAM 0, pba is the base address beginning at the parameter
RAM, and xba is determined to be either dba or pba by the linker.
A typical line of PP-relative code has the following format:
d6 = *(xba+BUF) ; read a word from memory at BUF
Содержание TMS320C80
Страница 1: ...TMS320C80 to TMS320C82 Software Compatibility User s Guide 1995 Digital Signal Processing Products ...
Страница 2: ...SPRU154 Printed in U S A November 1995 M418017 9741 revision ...
Страница 8: ...vi TMS320C80 to TMS320C82 Software Compatibility User s Guide ...
Страница 16: ...xiv TMS320C80 to TMS320C82 Software Compatibility User s Guide ...
Страница 30: ...1 14 TMS320C80 to TMS320C82 Software Compatibility User s Guide ...
Страница 40: ...2 10 TMS320C80 to TMS320C82 Software Compatibility User s Guide ...
Страница 64: ...A 6 TMS320C80 to TMS320C82 Software Compatibility User s Guide ...