- Forum
- News
Topic # 97 |
PMP V1.4 floating point for PIC16 |
2009.12.10 2:14 PM by PPA

Administrator
 |
Hi all!
As you saw, PMP now supports floating point for PIC16 processors.
There's a main issue with this: the / operator is no more a synonym of the DIV operator for division. Now the / operator generates always a real divide for PIC16.
This would give strange things not always visible:
var
I, J, K : integer;
...
K := I / J;
This code generates a floating point divide followed by an integer truncation.
So now PMP warns this explicitly to avoid stealth unoptimized code. PMP team leader
|
|
|
Answer n° 1 -------- 2009.12.11 10:23 PM by t90fpe

 |
Hi PPA, Support for floating point and PIC16, that is really interesting. I will certainly give this a try! Keep up the good work!
Best Regards, Fred |
|
|
 |
 topic active
 topic closed
 Sticky
 New message -
 Correct message
 Close topic
 Make sticky
|
Sentence to think about : There are 10 kinds of people in the world — those who understand binary and those who don't. Unknown