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.

Linker Script Language (LSL)max()int max( expr, expr )Returns the value of the expression that has the largest value. To get the highest value of two symbols:max( "sym1" , "sym2")min()int min( expr, expr )Returns the value of the expression hat has the smallest value. To get the lowest value of two symbols:min( "sym1" , "sym2")sizeof()int sizeof( size_id )Returns the size of the object (group, section or memory) the identifier refers to. To get the size of thesection "asection":sizeof( sect: "asection" )The group and sect arguments only works in assignments. The mem argument can be usedanywhere in section layouts.16.2.6. LSL Definitions in the Linker Script Filedescription ::= >=1definition::= architecture_definition| derivative_definition| board_spec| section_definition| section_setup• At least one architecture_definition must be present in the LSL file.16.2.7. Memory and Bus Definitionsmem_def ::= memory mem_name 0|1 { >=0 }• A mem_def defines a memory with the mem_name as a unique name.mem_descr ::= type = 0|1 mem_type| mau = expr| size = expr| speed = number807

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

Saved successfully!

Ooh no, something went wrong!