Springen naar inhoud


Foto

Compiling for dm800


  • Please log in to reply
Er zijn 2 reacties in dit onderwerp

#1 Speedy1985

  • Senior Member
  • 120 berichten

+18
Neutral

Geplaatst op 31 mei 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


Veranderd door Speedy1985, 31 mei 2013 - 20:57

 
Support: webchat.freenode.net #boblight-enigma2

Re: Compiling for dm800 #2 Sjaaky

  • Senior Member
  • 7443 berichten

+41
Good

Geplaatst op 31 mei 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 berichten

+18
Neutral

Geplaatst op 1 juni 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 gebruiker(s) lezen dit onderwerp

0 leden, 1 bezoekers, 0 anonieme gebruikers