Texas Instruments TMS320 User Manual page 185

Dsp/bios v5.40
Hide thumbs Also See for TMS320:
Table of Contents

Advertisement

5.1.2
Disabling Dynamic Memory Allocation
5.1.3
Defining Segments in Your Own Linker Command File
❏ Change the properties of an existing MEM segment.
❏ Delete some MEM segments, particularly those that correspond to
external memory locations. However, you must first change any
references to that segment made in the properties of other objects and
managers. To find dependencies on a particular MEM segment, right-
click on that segment and select Show Dependencies from the pop-up
menu. Deleting or renaming the IPRAM and IDRAM (C6000 platform) or
IPROG and IDATA (C5000 platform) segments is not recommended.
❏ Rename some MEM segments. To rename a segment, follow these
steps:
a) Remove dependencies to the segment you want to rename. To find
dependencies on a particular MEM segment, right-click on that
segment and select Show Dependencies from the pop-up menu.
b) Rename the segment. You can right-click on the segment name and
choose Rename from the pop-up menu to edit the name.
c) Recreate dependencies on this segment as needed by selecting the
new segment name in the properties for other objects.
If small code size is important to your application, you can reduce code size
significantly by removing the capability to dynamically allocate and free
memory. If you remove this capability, your program cannot call any of the
MEM functions or any object creation functions (such as TSK_create). You
should create all objects that are used by your program in the configuration.
To remove the dynamic memory allocation capability, set the No Dynamic
Memory Heaps properties for the MEM Manager to true.
If dynamic memory allocation is disabled and your program calls a MEM
function (or indirectly calls a MEM function by calling an object creation
function), an error occurs. If the segid passed to the MEM function is the
name of a segment, a link error occurs. If the segid passed to the MEM
function is an integer, the MEM function will call SYS_error.
The MEM Manager allows you to select which memory segments contain
various types of code and data. If you want more control over where these
items are stored, set the User .cmd file for non-DSP/BIOS segments property
in the properties for the MEM Manager to true.
Memory and Low-level Functions
Memory Management
5-3

Advertisement

Table of Contents
loading

Table of Contents