06.02.2013 Views

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

• • • • • • • •<br />

<strong>Assembler</strong> Directives 7−61<br />

Combine Type<br />

Description<br />

GLOBAL All sections of the same name that are defined to be<br />

global are combined in contiguous memory. The length of<br />

the resulting section is the sum of the lengths of the<br />

sections combined. GLOBAL goes one step further than<br />

PUBLIC in that it also combines sections (with the same<br />

name) in different TASKS.<br />

COMMON All sections of the same name that are defined to be<br />

common are overlapped to form one section. All of the<br />

combined sections begin at the same physical address.<br />

The implementation of the combination of sections with a<br />

COMMON combine type requires the next attributes of<br />

the sections which are combined to be equal:<br />

− section size<br />

− align type<br />

− memory type<br />

− class<br />

− group<br />

SYSSTACK All sections of the same name that are defined to be<br />

system stack are combined to one section so that each<br />

combined section ends at the same address (overlaid<br />

against high memory) and grows ’downward’. The length<br />

of the stack section after combination is equal to the sum<br />

of the lengths of the sections combined. The locator<br />

places the system stack section in the internal RAM<br />

where it can be accessed with the Stack Pointer Register.<br />

USRSTACK All sections of the same name that are defined to be user<br />

stack are combined to one section so that each combined<br />

section ends at the same address (overlaid against high<br />

memory) and grows ’downward’. The length of the stack<br />

section after combination is equal to the sum of the<br />

lengths of the sections combined. The user stack section<br />

can be located at any memory address, and is accessed<br />

as data with DPPx and offset. USRSTACK sections are<br />

only combined at link stage.

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

Saved successfully!

Ooh no, something went wrong!