13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

8−10PCP Reference Manualexists()int exists( section_name )The function returns 1 if the section section_name exists in one or moreobject file, 0 otherwise. If the section 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 filesthat is specified to the linker:max()exists( "mysection" )LINKER SCRIPT LANGUAGEint max( expr, expr )Returns the value of the expression that has the largest value. To get thehighest value of two symbols:min()max( "sym1" , "sym2")int min( expr, expr )Returns the value of the expression hat has the smallest value. To get thelowest value of two symbols:sizeof()min( "sym1" , "sym2")int sizeof( size_id )Returns the size of the object (group, section or memory) the identifierrefers to. To get the size of the section "asection":sizeof( sect: "asection" )The group and sect arguments only works in assignments. The memargument can be used anywhere in section layouts.

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

Saved successfully!

Ooh no, something went wrong!