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.

Assembly Language.GLOBALSyntax.GLOBAL symbol[,symbol]...DescriptionAll symbols or labels defined in the current section or module are local to the module by default.You canchange this default behavior with assembler option --symbol-scope=global.With the .GLOBAL directive you declare one of more symbols as global. It means that the specifiedsymbols are defined within the current section or module, and that those definitions should be accessibleby all modules.To access a symbol, defined with .GLOBAL, from another module, use the .EXTERN directive.Only program labels and symbols defined with .EQU can be made global.If the symbols that appear in the operand field are not used in the module, the assembler gives a warning.The assembler does not allow a label with this directive.ExampleLOOPA .EQU 1; definition of symbol LOOPA.GLOBAL LOOPA ; LOOPA will be globally; accessible by other modulesRelated In<strong>for</strong>mation.EXTERN (Import global section symbol)115

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

Saved successfully!

Ooh no, something went wrong!