forum.gifForum - News - Topic #97

 

Forum - Forum
News - News


active  Topic # 97  PMP V1.4 floating point for PIC16

2009.12.10 2:14 PM
by PPA

PPA

Administrator
155 messages

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

Write to PPA   Website PPA Post an answer  Top
Answer n° 1
--------
2009.12.11 10:23 PM
by t90fpe

t90fpe

6 messages
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
  Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 





Sentence to think about :  There are 10 kinds of people in the world — those who understand binary and those who don't.  Unknown
^ Top ^