I have a function that uses xdata in one of it's helper functions. How do I prevent it from doing so?
MORE INFOMATION PLEASE
Set an appropriate Memory Model ?
Define your variables with appropriate memory space qualifiers?
That would be the case if you’d want it for the entire target. I am only looking to change the behavior of one C function in the target.
What does the documentation say? What do expert level colleagues/supervisors suggest to you? Can you use #pragma or attributes? Can you use better prototyping? Can you rewrite the helper functions, or use different ones, or have some consistency in the types of variables being used? Can you use structures? Instead of passing millions of parameters, or having code with inconsistent expectations of the types of pointers and variables. Have you thought about using ARM chips? It's 2018, ARM chips have been around since the early/mid 1980's
http://www.keil.com/support/docs/995.htm
well, if you get away from the shitty "model large" your function will not use xdata. You can then, if needed, define some variables used elsewhere xdata