| |||||
Technical Support Support Resources
Product Information | C251: POINTER ALIAS PROBLEMSQUESTIONC251 Version 2.12f generates incorrect code for the following example program:
void main (void)
{
unsigned short near Number;
Number = 1;
ChangeLocal (&Number);
Number++;
}
Specifically, the Number++ statement changes Number to 2 instead of incrementing it. Is there a fix for this problem? ANSWERYes. There is a correction for this problem. In early versions of C251 Version 2, optimizations involving pointer aliases were too aggressive and optimized necessary code out of the program. This has been corrected in C251 Version 2.14b. Contact our technical support staff to receive the updated C251 compiler via e-mail. Last Reviewed: Monday, May 24, 2004 | ||||
| |||||