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.SECTION, .ENDSECSyntax.SECTION name[,at( address)].....ENDSECDescriptionWith the .SECTION directive you define a new section. Each time you use the .SECTION directive, anew section is created. It is possible to create multiple sections with exactly the same name.If you define a section, you must always specify the section name. The names have a special meaningto the locating process and have to start with a predefined name, optionally extended by a dot '.' and auser defined name. The predefined section name also determines the type of the section (code, data ordebug). Optionally, you can specify the at() attribute to locate a section at a specific address.You can use the following predefined section names:Section name.text.data.bss.rodata.debugDescriptionCode sectionsInitialized dataUninitialized data (cleared)ROM data (constants)Debug sectionsSection typecodedatadatadatadebugSections of a specified type are located by the linker in a memory space. The space names are definedin a so-called 'linker script file' (files with the extension .lsl) delivered with the product in the directoryinstallation-dir\include.lsl.Example.SECTION .data;;.ENDSEC; Declare a .data section.SECTION .data.abs, at(0x0) ; Declare a .data.abs section at; an absolute address;;.ENDSECRelated In<strong>for</strong>mation.OFFSET (Move location counter <strong>for</strong>wards)129

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

Saved successfully!

Ooh no, something went wrong!