We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am using 5.20 if it matters I have a function that is indirectly called from an array of functions. This function is contained in its own module. When I link, I get the following warning:
WARNING 16: Uncalled Segment, ignored for overlay process segment: ?CO?FACT_CON
static float code ideal_values[LAST_POINT] ={
This is just a suggestion. I declare an array of function pointers to solve similar problem in my current project. It works without warning, the array is placed in code memory, and the overlay analysis is used for the whole project. You could try this: static const float (code* code ideal_value[LAST_POINT])(void) = {fnct1, fnct2}; This simply declare an array of pointers to functions that return float and take no argument. The array is placed in the code. Invoke the function by: x = ideal_value[i](); or x = (*ideal_value[i])(); I hope this solve your problem. David Lin