Hi, Is there a problem using idata for variables used in "heavy"calculations ? ( heavy = 3 products 2 sums in a same instruction) I use microvision 1.30 dll 1.30 C compiler v5.20 In my program some calculations produce good results when used with data and wrong and changeant results when used with idata. Thanks. Gregory.
Can you give any indication of the maximum stack depth the compiler could use when evaluating an arbitrarily complex expression? The compiler only stacks temporary results when absolute required. Typically, this is only required in complex expressions using long or float types which include function calls. For example, consider the following:
long a,b,c,d,e; e = (a*b) + (c*d);
long a,b,c,d,e,f,g; e = (a*b) + (c*d) + (f*g);
Jon, Thank you for your answer.