Hi, using CodWarrior 3.1 for HC(S)08, I am trying to get an array of function pointers allocated into FLASH (.rodata). Instead they are allocated into RAM (.data) and initialization code loads the array.
Here is what I am doing:
const void (*sapfnIPHandlers [])(void) =
{
func1,
func2,
func3,
...
funcn
}
void func1 (void)
{
...
}
etc.
I have tried the -Cc compiler option with no change in the output.
This code is simply a way of parsing some commands to get to the right function. What am I doing wrong (or what is the compiler doing wrong)?
Thanks