BARfly Help - BAR Implementation File Reference - Expressions

  Overly complex expressions

The BAR engine is limited to only 16 independent, temporary storage locations used to perform unitary calculations during script processing.  These temporary locations are called registers.

In the event of a register depletion condition (over 16 registers must be used to store data for a single statement calculation), the BAR compiler generates an error.  The following code has an overly complex expression.

addresult = (a / (b / (c / (d / (e / (f / (g / (h / (i / (j / (k / (l / (m / (n / (o / (p / (q / r)))))))))))))))));

To prevent an error from occurring, break the expression down into smaller calculations.


  See also:  [Final expression type result] [L-value status gain and loss]
[Overly complex expressions] [Limitations on pointer usage] [Structure member dereference:  bit scan blocks]


BARfly Help Copyright © 2009 Christopher Allen