The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
question for hppl compiler people
11-13-2017, 10:20 AM
Post: #1
question for hppl compiler people
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
question for hppl compiler people - webmasterpdx - 11-13-2017 10:20 AM



User(s) browsing this thread: 1 Guest(s)