Csound Csound-dev Csound-tekno Search About

Orchestra compiler code generation efficiency

Date2015-06-12 10:32
From"F. Silvain"
SubjectOrchestra compiler code generation efficiency
Hey hey everyone,
I was wondering how well the Csound compiler can optimise code or how much 
this actually matters, since finally it's a question of how the Csound binary 
is optimised for the running system.

Does it help to reorder expressions, use bit shift instead of multiplication 
by 2^x and the like? Can anyone enlighten me please?

Thank you, any hint is much appreciated!

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-06-12 11:20
Fromjpff
SubjectRe: Orchestra compiler code generation efficiency
There is basic constnt folding but you should remember that Csound works 
in floaing point so bit shift it slpw -- convert to integer, shift, convert 
bck so lots of actions.  All operations are via sibroutine cll s well so 
this is not the usul C case/

On Fri, 12 Jun 2015, F. Silvain wrote:

> Hey hey everyone,
> I was wondering how well the Csound compiler can optimise code or how much
> this actually matters, since finally it's a question of how the Csound binary
> is optimised for the running system.
>
> Does it help to reorder expressions, use bit shift instead of multiplication
> by 2^x and the like? Can anyone enlighten me please?
>
> Thank you, any hint is much appreciated!
>
> Ta-ta
> ----
> Ffanci
> * Homepage: https://freeshell.de/~silvain
> * Twitter:  http://twitter.com/ffanci_silvain
> * GitHub:   https://github.com/fsilvain
>

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-06-15 12:31
From"F. Silvain"
SubjectRe: Orchestra compiler code generation efficiency
jpff, Jun 12 2015:

> There is basic constnt folding but you should remember that Csound works
> in floaing point so bit shift it slpw -- convert to integer, shift, convert
> bck so lots of actions.  All operations are via sibroutine cll s well so
> this is not the usul C case/
Thanks John. So the only thing I can do is optimise my general solutions and order the expressions?
...

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here