In gcc, you can use a static const array. In Codewarrior, the only way
I've found to do it is:
static asm _kOneBitRotateRightTable7()
{
DC.L 0x00000000, 0x00000080, 0x00008000, 0x00008080
DC.L 0x00800000, 0x00800080, 0x00808000, 0x00808080
DC.L 0x80000000, 0x80000080, 0x80008000, 0x80008080
DC.L 0x80800000, 0x80800080, 0x80808000, 0x80808080
}
#define kOneBitRotateRightTable7 ((DWordPtr)_kOneBitRotateRightTable7)
...if you want an array of bytes, it's DC.B; an array of words is DC.W
---
--On Friday, June 2, 2000 7:28 AM -0700 "Michael P. Hutchens, M.D., M.A."
<[EMAIL PROTECTED]> wrote:
> What's the most memory efficient way to implement a data-table on the
> Palm? Currently my app has several lookup tables implemented as arrays
> that are defined at runtime, but I wonder if there might be a way that
> took up less dynamic memory.
>
> Any suggestions?
> --
> ----------------------------------------------------------------------
> Michael Hutchens PregCalc 3.0 Professional:
> [EMAIL PROTECTED] http://www.thenar.com/pregcalc
> FloChart:
> Please quote previous http://www.thenar.com/chart
> correspondence when discussing Ranson:
> technical support issues. http://www.thenar.com/Ranson
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/