Jump to content


Photo

Compiling for dm800


  • Please log in to reply
2 replies to this topic

#1 Speedy1985

  • Senior Member
  • 120 posts

+18
Neutral

Posted 31 May 2013 - 20:54

Hi,

 

Iam wondering if any know what's the best optimizing flags for compiling for a dm800.

I no that dm800 has no fpu support. so the best option for that is -msoft-float i think,

 

But my program (boblight daemon) use a lot of floats.

On a box with FPU support it runs verry wel @ 12-14% cpu.

but on the dm800 (no FPU support) 60-80% idle and 100% when used.

 

Now i use -O2 -msoft-float -pipe.

 

I hope any can help me with this.

Thanks!

 

Kind regards Speedy


Edited by Speedy1985, 31 May 2013 - 20:57.

 
Support: webchat.freenode.net #boblight-enigma2

Re: Compiling for dm800 #2 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 31 May 2013 - 21:20

You probably won't need all the precision and flexibility of floating points. Consider rewriting the arithmetics using integers and fixed point arithmetics http://en.wikipedia....oint_arithmetic . There are probably useful libraries or macros that you can use.

Re: Compiling for dm800 #3 Speedy1985

  • Senior Member
  • 120 posts

+18
Neutral

Posted 1 June 2013 - 13:52

You probably won't need all the precision and flexibility of floating points. Consider rewriting the arithmetics using integers and fixed point arithmetics http://en.wikipedia....oint_arithmetic . There are probably useful libraries or macros that you can use.

 

Thanks for the nice anwser :) I will take a look to that.

 

Gr Speedy


 
Support: webchat.freenode.net #boblight-enigma2


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users