On 10/25/07, Rob <[EMAIL PROTECTED]> wrote:
> ok - a followup.
>
> having found that:
>
> {
> const UInt32 bitRate[15] = { 0, 32000, 40000, 48000, 56000, 64000,
> 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000 };
> return bitRate[bits];
> }
>
> Is triggering an A5 warning, I need to do the same job without globals
> (I have turned on PC-Relative strings and PC-Relative constants in the
> project options, but they don't seem to fix this)
>
> can anyone suggest an efficient way to do this that won't end up using the
> A5 register?
a) global const
put it outside of the function, not as a variable inside.
b) use a resource
resources are simply memory pointers when locked. not that slow at all.
what do you expect pc-relative data is? it is data inside a 'code' resource.
--
// Aaron Ardiri
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/