Blackfin Processor Loader Guide
Listing 2-4. ROM Segment Definitions (LDF File)
PROCESSOR p0
{
OUTPUT( $COMMAND_LINE_OUTPUT_FILE )
SECTIONS
{
program_rom
{
INPUT_SECTION_ALIGN(4)
INPUT_SECTIONS( $OBJECTS(rom_code) )
} >MEM_PROGRAM_ROM
data_rom
{
INPUT_SECTION_ALIGN(4)
INPUT_SECTIONS($OBJECTS(rom_data) )
} >MEM_DATA_ROM
data_sram
{
INPUT_SECTION_ALIGN(4)
INPUT_SECTIONS($OBJECTS(ram_data) )
} >MEM_DATA_RAM
With the LDF file modified this way, the source files can now take advan-
tage of the newly introduced sections, as in
Listing 2-5. Section Handling (Source Files)
.SECTION rom_code;
_reset_vector: l0 = 0;
2-54
1 = 0;
l2 = 0;
l3 = 0;
/* continue with setup and application code */
Listing
2-5.
VisualDSP++ Loader Manual
for 16-Bit Processors
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?