TASKING VX-toolset for TriCore User Guide
14.8.5. Conditional Group Statements
Within a group, you can conditionally select sections or create special sections.
• With the if keyword you can specify a condition. The succeeding section statement is executed if the condition evaluates to TRUE (1).
• The optional else keyword is followed by a section statement which is executed in case the if-condition evaluates to FALSE (0).
group ( ... )
{
if ( exists( "mysection" ) )
select "mysection";
else
reserved "myreserved" ( size=2k );
}
786