11-13-2017, 10:20 AM
If I declare a variable as:
LOCAL A:=#0d32;
vs
LOCAL A:=0.;
Does the first declaration result in operations involving such variables being compiled to integer operations and the second declaration result in operations compiled to floating point operations?
....or...is everything converted to a common format (like real or int) and everything done using that format?
I was trying a few operations in a big loop and the timing seems to be the same regardless of the declaration, which probably means it's all done in floating point format since there isn't a hardware FPU in the ARM chip....integer would be faster if there was a difference.
Let me know if any of you are familiar with the compiler internals...
Thx
-Donald
LOCAL A:=#0d32;
vs
LOCAL A:=0.;
Does the first declaration result in operations involving such variables being compiled to integer operations and the second declaration result in operations compiled to floating point operations?
....or...is everything converted to a common format (like real or int) and everything done using that format?
I was trying a few operations in a big loop and the timing seems to be the same regardless of the declaration, which probably means it's all done in floating point format since there isn't a hardware FPU in the ARM chip....integer would be faster if there was a difference.
Let me know if any of you are familiar with the compiler internals...
Thx
-Donald