Declaring the Pointer Table in CODE Space Hello, I would like to declare the following array of functions in HCONST space: code void (code *ArrayOfFunctions[])(void) = { MyFunct_1, MyFunct_2, ... }; For the moment, this declaration causes a ?CO? segment in CODE space but i would like to locate this table in HCONST space? How can i do it? Is the following declaration is correct: code void (code * const far ArrayOfFunctions[])(void) = { MyFunct_1, MyFunct_2, ... }; Thank you for your help!
Hi Tony, I can you help with declaration but it is located in HDATA space.
void func1 (void); void func2 (void); void func3 (void); /* function pointer arry with 3 functions */ const void (far * pFunctions[3])(void)= { func1,func2,func3 }; .... Your code .... void func1 (void){ /* Here what to do */} void func2 (void){ /* Here what to do */} void func3 (void){ /* Here what to do */}