25.12.2012 Views

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Blackfin Processor <strong>Loader</strong> Guide<br />

INPUT_SECTION_ALIGN(4)<br />

INPUT_SECTIONS( $OBJECTS(ram_data) )<br />

} >MEM_DATA_RAM<br />

With the LDF file modified this way, the source files can now take advantage<br />

of the newly-introduced sections, as in Listing 2-5.<br />

Listing 2-5. Section H<strong>and</strong>ling (Source Files) Example<br />

.SECTION rom_code;<br />

_reset_vector: l0 = 0;<br />

1 = 0;<br />

l2 = 0;<br />

l3 = 0;<br />

/* continue with setup <strong>and</strong> application code */<br />

/* . . . */<br />

.SECTION rom_data;<br />

.VAR myconst x = 0xdeadbeef;<br />

/* . . . */<br />

.SECTION ram_data;<br />

.VAR myvar y; /* note that y cannot be initialized automatically */<br />

2-82 <strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!