[sdiy] Loop optimizing in DCO DCA chains or in general.
karl dalen
dalenkarl at yahoo.se
Wed Feb 2 19:51:36 CET 2011
My 32 bit DCO-DCA loop contains 21 instructions to complete
including output a audible sound. Does that sound reasonable?
I just wonder to hear if im completely lost in the woods?
Referring to earlier discussions about optimizing loops by
poking in assembler, would it be better to use the inbuilt
compiler loop optimizer per loop basis or should i just set
the compiler to max speed sacrificing code space optimizing
or something?
I suppose it differs depending on application wheter the micro
are only doing a oscillator(non ISR driven) or independent
background/front tasks where the audio side needs it's own
timing (ISR driven).
One reason is when i look into the disassembler i see 4 mov's
in the loop that should really be 2 and there are additional
ones later on so that eat's speed when doing many DCO-DCA yet
some people here says i should not and others that i should?
I'm tempted to poke! At least just a little,
in the right places i hope. :-)
Perhaps this has already been dealt with in the past?
Anyhow many thanks to all of you whom have
bothered about my silly questions in the past.
Regards
Kd
More information about the Synth-diy
mailing list