EasyManuals Logo

Texas Instruments TMS320 User Manual

Texas Instruments TMS320
288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #43 background imageLoading...
Page #43 background image
Configuring DSP/BIOS Applications Statically
Program Generation 2-13
There are four methods for dealing with this issue. These methods are
described in the sections following and have the pros and cons as shown in
Table 2-1.
Table 2-1. Methods of Referencing C6000 Global Objects
2.3.3.2 Referencing Static DSP/BIOS Objects in the Small Model
In the small model, all compiled code accesses global data relative to a data
page pointer register. The register B14 is treated as a read-only register by
the compiler and is initialized with the starting address of the .bss section
during program startup. Global data is assumed to be at a constant offset
from the beginning of the .bss section and this section is assumed to be at
most 32K bytes in length. Global data, therefore, can be accessed with a
single instruction like the following:
LDW *+DP(_x), A0 ; load _x into A0 (DP = B14)
Since objects created statically are not placed in the .bss section, you must
ensure that application code compiled with the small model references them
correctly. There are three ways to do this:
Method
Declare
objects
with far
Use global
object
pointers
Objects
adjacent
to .bss
Compile
with large
model
Code works independent of compilation model Yes Yes Yes Yes
Code works independent of object placement Yes Yes No Yes
C code is portable to other compilers No Yes Yes Yes
Statically-created object size not limited to 32K bytes Yes Yes No Yes
Minimizes size of .bss Yes Yes No Yes
Minimizes instruction cycles
No
(3 cycles)
No
(2-6 cycles)
Yes
(1 cycle)
No
(3 cycles)
Minimizes storage per object
No
(12 bytes)
No
(12 bytes)
Yes
(4 bytes)
No
(12 bytes)
Easy to program; easy to debug Somewhat Error prone Somewhat Yes

Table of Contents

Other manuals for Texas Instruments TMS320

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320 and is the answer not in the manual?

Texas Instruments TMS320 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320
CategoryComputer Hardware
LanguageEnglish

Related product manuals