



LINKING C DATA OBJECTS SEPARATE FROM THE .BSS SECTIONThe TMS320 DSP C compilers produce several relocatable blocks of code and data when C code is compiled. These blocks are called sections and can be allocated into memory in a variety of ways to conform to a variety of system configurations. The .bss section is used by the compiler for global and static variables. It is one of the default COFF sections that is used to reserve a specified amount of space in the memory map that can later be used for storing data. It is normally uninitialized. All global and static variables in a C program are placed in the .bss section. On the 'C80, PP static and global variables are placed in the .pbss section that is assumed to be on chip. The far keyword can be used to force static or global variables to reside in the .bss section, which is assumed to be off chip. However, often it is desirable to place some of your variables separate from the .bss or .pbss section.
This document discusses how to implement this. View the complete PDF document: spra258.pdf (32 K Bytes) (Requires Acrobat Reader 3.x) Go to the Engineering Design Center to locate information on other TI Semiconductor devices.
![]() ![]() ![]() ![]() (c) Copyright 1998 Texas Instruments Incorporated. All rights reserved. Trademarks, Important Notice! |