PreviousNext
Widening function parameter
Help > Appendix > Code Optimization > Widening function parameter

FLASH-                        RAM-               Speed+

 

Sometimes it is necessary to extend the function parameter size.

 

void Method ( uns8 value )

{

  uns16 var16;

  var16.high8 = 0;

  var16.low8 = value;

 

  var16 *= 3;

  // use var16

}

uns16 var16;

 

void Method ( uns8 value @ var16 )

{

  var16.high8 = 0;

 

  var16 *= 3;

  // use var16

}