[sdiy] STM32 processor
Neil Johnson
neil.johnson97 at ntlworld.com
Tue Sep 20 12:04:40 CEST 2011
Tom,
> Instead, if you arrange the variables like this:
> A0, B0, C0, A1, B1, C1, A2, B2, C2, A3, B3, C3
> You can use a single pointer, increment it after each use, get the next
> variable you need, carry on, and when the loop is finished, you're in the
> right place to start the next cycle. The whole thing only uses one pointer.
Yes, this very idea was researched in a 1995 conference paper by Liao,
Devadas et al. Do a google on "Storage Assignment to Decrease Code
Size". I used this as a base for developing my own SolveMMA algorithm
to get more use out of ARM's LDMIA and STMIA instructions.
Cheers,
Neil
--
http://www.njohnson.co.uk
More information about the Synth-diy
mailing list