Listing 2-3. Blackfin SECTIONS{} Command in the .LDF File
SECTIONS
{
/* List of sections for processor P0 */
dxe_L2
{
INPUT_SECTION_ALIGN(2)
/* Align all code sections on 2 byte boundary */
INPUT_SECTIONS( $OBJECTS(program) $LIBRARIES(program))
INPUT_SECTION_ALIGN(1)
INPUT_SECTIONS( $OBJECTS(data1) $LIBRARIES(data1))
INPUT_SECTION_ALIGN(1)
INPUT_SECTIONS( $OBJECTS(constdata)
INPUT_SECTION_ALIGN(1)
INPUT_SECTIONS( $OBJECTS(ctor) $LIBRARIES(ctor) )
} >MEM_L2
stack
{
ldf_stack_space = .;
ldf_stack_end =
ldf_stack_space + MEMORY_SIZEOF(MEM_STACK) - 4;
} >MEM_STACK
sysstack
{
ldf_sysstack_space = .;
ldf_stack_end =
ldf_stack_space + MEMORY_SIZEOF(MEM_STACK) - 4;
} >MEM_SYSSTACK
heap
{
/* Allocate a heap for the application */
ldf_heap_space = .;
ldf_heap_end =
ldf_heap_space + MEMORY_SIZEOF(MEM_HEAP) - 1;
ldf_heap_length = ldf_heap_end - ldf_heap_space;
} >MEM_HEAP
VisualDSP++ 3.5 Linker and Utilities Manual
for 16-Bit Processors
$LIBRARIES(constdata))
Linker
2-27
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?