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>TypeOperatorNameDescriptionRelational===!=less thanless than or equalgreater thangreater than or equalequalnot equalReturns an integer 1 if the indicated condition isTRUE or an integer 0 if the indicated condition isFALSE.For example, if D has a value of 3 and E has a valueof 5, then the result of the expression DE is 0.Use tests <strong>for</strong> equality involving floating-point valueswith caution, since rounding errors could causeunexpected results.Bitwise&ANDInteger only. Yields the bitwise AND function of itsoperand.|ORInteger only. Yields the bitwise OR function of itsoperand.^exclusive ORInteger only.Yields the bitwise exclusive OR functionof its operands.Logical&&logical ANDReturns an integer 1 if both operands are non-zero;otherwise, it returns an integer 0.||logical ORReturns an integer 1 if either of the operands isnon-zero; otherwise, it returns an integer 1The relational operators and logical operators are intended primarily <strong>for</strong> use with the conditional assembly.if directive, but can be used in any expression.3.7. Working with SectionsSections are absolute or relocatable blocks of contiguous memory that can contain code or data. Somesections contain code or data that your program declared and uses directly, while other sections arecreated by the compiler or linker and contain debug in<strong>for</strong>mation or code or data to initialize your application.These sections can be named in such a way that different modules can implement different parts of thesesections. These sections are located in memory by the linker (using the linker script language, LSL) sothat concerns about memory placement are postponed until after the assembly process.All instructions and directives which generate data or code must be within an active section.The assembleremits a warning if code or data starts without a section definition. The compiler automatically generatessections. If you program in assembly you have to define sections yourself.For more in<strong>for</strong>mation about locating sections see Section 8.7.8, The Section Layout Definition: LocatingSections.Section definitionSections are defined with the .SECTION/.ENDSEC directive and have a name.The names have a specialmeaning to the locating process and have to start with a predefined name, optionally extended by a dot90

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

Saved successfully!

Ooh no, something went wrong!