Analog Devices VisualDSP++ 3.5 Manual page 288

Linker and utilities manual for 16-bit processors
Hide thumbs Also See for VisualDSP++ 3.5:
Table of Contents

Advertisement

Linking for C Source File – Example 1
}>MemStack
// Allocate memory segment for system stack sysstack
// Assign start address of sys stack to 'ldf_sysstack_space'
// variable using the LDF's current location counter "."
ldf_sysstack_space = .
// Assign end address of stack to 'ldf_sysstack_end' variable
ldf_sysstack_end = ldf_sysstack_space + MEMORY_SIZEOF
}>MemSysStack
// Allocate a heap segment (for dynamic memory allocation)
// heap
// Assign start address of heap to 'ldf_heap_space' variable
// using the LDF's current location counter "."
ldf_heap_space = .;
// Assign end address of heap to 'ldf_heap_length' variable
ldf_heap_end = ldf_heap_space + MEMORY_SIZEOF(MemHeap) - 1;
// Assign length of heap to 'ldf_heap_length' variable
ldf_heap_length = ldf_heap_end - ldf_heap_space;
}>MemHeap
}
// end SECTIONS{}
// end PROCESSOR p0{}
C-10
(MemSysStack) - 4;
VisualDSP++ 3.5 Linker and Utilities Manual
for 16-Bit Processors

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Related Products for Analog Devices VisualDSP++ 3.5

Table of Contents