Jump to content
Sign in to follow this  
petrm

Floating point stuff...

Recommended Posts

Hello,

To Pavel: I tested two PIC18 compilator with floating point code,listed in previous (losted :) messages.

And these results are very interesting:

Microchip C18 v.2.20 demo  -  Hitech PICC-18.v.8.30 demo

Code size:      10536 b       -         2693b !

Speed 1:           506 cycl.  -          1008 cycl.

Speed 2:           491 cycl.  -           892 cycl.

 

Speed 1 is time to complete this : DC=(float)t1/t0;

Speed 2 is time to complete this : T =((DC - 0.32) / 0.0047);

 

It's interesting, that Michrochip prefer speed at the expense of size.

 

But if I tried make these calculation with 32bit integer, C18 was faster and final code was also smaller than PICC-18 did...

 

And this is my last message about floating point.  :(

Regards,

  Petr

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...