![Texas Instruments TMS320C80 Скачать руководство пользователя страница 50](http://html.mh-extra.com/html/texas-instruments/tms320c80/tms320c80_user-manual_1094755050.webp)
Prototyping Code Using Linker Command Files
3-10
TMS320C80 to TMS320C82 Software Compatibility User’s Guide
Example 3–2.’C80 PP Linker Command File for example.c
/********************************************************
* c80pp.lnk – PP linker command file for prototyping
* ’C82 code on the ’C80.
********************************************************/
–pc
–x
–pstack 0x580
–l pp_rts.lib
MEMORY
{
DRAM0 : o=0x00000004 l = 0x0ffc
DRAM1 : o=0x00002000 l = 0x1000
PRAM0 : o=0x01000200 l = 0x00600
PRAM1 : o=0x00008000 l = 0x00800
EXTMEM : o=0x02000000 l = 0x80000
}
SECTIONS
{
.ptext : > EXTMEM
.pcinit : > EXTMEM
.pbss : (PASS) > DRAM0
.pstack : (PASS) > PRAM0
.a_sect : (PASS) > DRAM0
.b_sect : (PASS) > DRAM1
}
3.4.3.3 Compiling and Linking example.c for the ’C80
To compile and link example.c for the ’C80, perform two steps:
1) Compile the C source code using the PP compiler.
2) Link the output of the compiler with the linker command file
shown in Example 3–2.
Both of these steps can be accomplished using a single com-
mand:
ppcl –g example.c –z –o c80ex.out –m c80ex.map c80pp.lnk
3.4.3.4 The ’C80 Map File
The map file shows where each variable was linked into memory.
In this case, the linker command file specifically assigns A to
DRAM0 and B to DRAM1. Example 3–3 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.
In this example, .a_sect was placed at address 00000140h in
DRAM0 and .b_sect was placed at address 00002000h in
DRAM1.
To see a complete map file, see Section 14.5,
The Example Link-
er Map Files, in the TMS320C80 (MVP) Code Generation Tools
User’s Guide.
Содержание 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 ...