Manual
Math Package for
W
INTERPRET
(T
7
833)
PD
- 7
043
March, 06
23
Typical Equation Sizes and
Execution Speeds
The followin
g information may be used for estimating the size
and increasing the efficiency of floating point equations. This
is only a guideline. Execution speeds and memory size
requirements will vary for each equation according to the
general rules shown below.
Compiled Function Block Size
As with all types of function blocks, the size of the compiled
function block is reported in the Error Messages dialog after
compiling the function block (
W
INTERPRET
version 3.2 or
later). The total size of the function block a
long with the data
size and code size are reported, where;
Total Size
=
Data Size + Code Size (bytes)
Data Size
=
2 bytes per line
(all lines, whether they are blank,
comments only or actual floating point
statements).
Code Size
=
52 + Code for Statements
The code required for actual floating point statements
depends on the types of operations used in the statements and
the types of variables used in the statements (see Table
10
).
A general rule for size considerations when designing floating
point equations for the Regent is: using floating point
variables creates the least amount of code, followed by
constants, shared registers, analogs, and bit
-
type variables.
The size required for floating point math operations depends
upon the types of variables in the operation. Use the
multipliers below to approximate the size based on the
variable types used.