![Texas Instruments TMS320C80 Скачать руководство пользователя страница 52](http://html.mh-extra.com/html/texas-instruments/tms320c80/tms320c80_user-manual_1094755052.webp)
Prototyping Code Using Linker Command Files
3-12
TMS320C80 to TMS320C82 Software Compatibility User’s Guide
PRAM0 and PRAM1 instead of just PRAM, as is the case in the
’C82 linker command file.
3.4.4.1 The ’C82 Linker Command File
The linker command file for the ’C82 specifies the location of
DRAM0, DRAM1, and PRAM, and external memory (EXTMEM).
Example 3–4.’C82 PP Linker Command File
/********************************************************
* c82pp.lnk – ’C82 PP linker command file.
********************************************************/
–pc
–x
–pstack 0x580
–l pp_rts.lib
MEMORY
{
DRAM0 : o=0x00000004 l = 0x0ffc
DRAM1 : o=0x00008000 l = 0x1000
PRAM : o=0x01000200 l = 0x00e00
EXTMEM : o=0x02000000 l = 0x80000
}
SECTIONS
{
.ptext : > EXTMEM
.pcinit : > EXTMEM
.pstack : (PASS) > PRAM
.pbss : (PASS) > DRAM0
.a_sect : (PASS) > DRAM0
.b_sect : (PASS) > DRAM1
}
3.4.4.2 Compiling and Linking example.c for the ’C82
To produce an executable for the ’C82, link the object file gener-
ated when you last compiled example.c with the linker command
file shown in Example 3–4.
This step can be accomplished using a single command:
ppcl –z –o c82ex.out –m c82ex.map example.o c82pp.lnk
If you do not have an object file to link, you can compile and link
with a single command:
ppcl –g example.c –z –o c82ex.out –m c82ex.map c82pp.lnk
3.4.4.3 The ’C82 Map File
The ’C82 linker command file specifically assigns A to DRAM0
and B to DRAM1, as was the case for the ’C80 linker command
file. Example 3–5 shows the lines from the map file that show
where A and B were placed in memory. The entire file is not
shown in that example; dots (..) are used to show sections that
were deleted.
Содержание 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 ...