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

Create successful ePaper yourself

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

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>| min ( expr , expr )| sizeof ( size_id )addr_idsize_id::= sect : section_name| group : group_name::= sect : section_name| group : group_name| mem : mem_name• Every space, bus, memory, section or group you refer to, must be defined in the LSL file.• The addressof() and sizeof() functions with the group or sect argument can only be used inthe right hand side of an assignment. The sizeof() function with the mem argument can be usedanywhere in section layouts.You can use the following built-in functions in expressions. All functions return a numerical value. Thisvalue is a 64-bit signed integer.absolute()int absolute( expr )Converts the value of expr to a positive integer.absolute( "labelA"-"labelB" )addressof()int addressof( addr_id )Returns the address of addr_id, which is a named section or group. To get the offset of the section withthe name asect:addressof( sect: "asect")This function only works in assignments.exists()int exists( section_name )The function returns 1 if the section section_name exists in one or more object file, 0 otherwise. If thesection is not present in input object files, but generated from LSL, the result of this function is undefined.To check whether the section mysection exists in one of the object files that is specified to the linker:exists( "mysection" )806

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

Saved successfully!

Ooh no, something went wrong!