13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>.WEAKSyntax.WEAK symbol[,symbol]...DescriptionWith the .WEAK directive you mark one or more symbols as 'weak'. The symbol can be defined in thesame module with the .GLOBAL directive or the .EXTERN directive. If the symbol does not already exist,it will be created.A 'weak' external reference is resolved by the linker when a global (or weak) definition is found in one ofthe object files. However, a weak reference will not cause the extraction of a module from a library toresolve the reference.You can overrule a weak definition with a .GLOBAL definition in another module. The linker will notcomplain about the duplicate definition, and ignore the weak definition.Only program labels and symbols defined with .EQU can be made weak.ExampleLOOPA .EQU 1; definition of symbol LOOPA.GLOBAL LOOPA ; LOOPA will be globally; accessible by other modules.WEAK LOOPA ; mark symbol LOOPA as weakRelated In<strong>for</strong>mation.EXTERN (Import global section symbol).GLOBAL (Declare global section symbol)136

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

Saved successfully!

Ooh no, something went wrong!