ARMCC: STATIC FUNCTION POINTERS
Information in this article applies to:RealView Microporcessor Development Kit - All Versions
The following code will not compile under RealView:
Void (*MyFunc) (void) = 0x6000;
The RealView C compiler is quite particular about symbol types. It does not automatically cast an integer constant to a code pointer.
To make sure the types of your pointer and constant agree, define a new type, and then use that to declare your pointer and constant. For example:
typedef void (*t_funcPtr)(void); t_funcPtr MyFunc = (t_funcPtr)0x6000;
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Wednesday, November 15, 2006
of your data.