Does anybody know how absoft handles the following:
In C one can 'hint' that the compiler ought to consider storing a value in a register only - not in RAM nor stack.
If a do loop index is used 'once only' within the loop, it is stored only in a register (or at least it was in the old days and ought to be).
To give a 'hint' to the absoft compiler, is it better to
(a) declare a temp variable and only use it over a few lines, and whenever one needs another temp variable to
declare another temporary variable, temp2;
or
(b) just using the same variable, temp, for all uses, will be okay.
Or does the Absoft compiler ignore such 'opportunities' to save RAM/cache and time?
Thanks for any ideas.
Colin