I was also led to believe that they were identical. Apparently, you can even
write

  0[paletteTemp] = 0[paletteGet];

if you are into obfuscated code, not that I spend much time inside a
disassembler...

Matt

----- Original Message -----
From: "Mark Wilden" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Sunday, November 17, 2002 3:49 PM
Subject: Re: palette


> ----- Original Message -----
> From: "Matthew Bevan" <[EMAIL PROTECTED]>
>
>
> > >    paletteTemp[0] = *(paletteGet+0);
> >  paletteTemp[0] = paletteGet[0];
>
> > From experience the top-most is faster.  Dereferencing something using
> var[n]
> > makes the compiler add different steps than *(var+n).
>
> In C, these are exactly the same. Anywhere you can use one, you can use
the
> other. So I'd be quite surprised if they generated different code.
>
> Are you seeing this with the MW compiler?
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to