Mirsad Todorovac wrote:
Normal local variables are (by definition!) created each time the routine is called. To avoid this, give them the `static' attribute (non-standard), or declare them as `const' (non-standard, BP). The latter is obviously preferrable since the array is really constant.
``Attribute (static)'' pushes copying out of function, but ``attribute (const)'' is still copying the array in each function call!,
`attribute (const)' is not the same as declaring a constant.
Besides this, since array [0..255] can be and probably should be properly aligned on 32-bit boundary,
Arrays are generally aligned the same as their elements.
(And_then is an equivalent of {B+}, isn't it?)
No, it's just the opposite.
stuff, IMHO. So, we save both time and space :-)
How often do you call the function (in the same unit), so it would save the space of that array?
Frank