Koen van de Ven

const address

Discussion created by Koen van de Ven on Feb 10, 2009
Latest reply on Feb 11, 2009 by Guest
Hi,
 
I'm using codewarrior but I get a "illegal constant expression" when declaring something like:
 
u08* const ptr = (u08* const)  ( (u32)&array[16] & ~0xF );
 
It seems to me that the above expression be evaluated before runtime.
Can anybody help?
 
Thanks in advance.

Outcomes