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 get this message when compiling my program. It's about 25KB big, and MC have 32KB... What should I do to compile bigger programs anway, because program is not completed yet, I have to add some more stuff.
It seems that compiler have some bugs
No, it doesn't, because ...
The problem was to many if > else if > ... > else if parsing in one block...
... that is nesting, too. Under certain circumstances, C blocks don't need to be enclosed in parentheses - and this is one of them. Every else if introduces an additional level of nesting, because the else refers to the preceding if, not to the first if.
With indentation, this becomes a little clearer:
if(...) ... else if(...) ... else if(...) ... else if(...) ... else if(...) ...
This happens because C does not have an "elseif" that would place all additional cases at the same level of nesting as the first if.
Chris, Andy, Thank you... Guys, this was really fast response, and best support I have ever had...
There is always a limit to parse depth, and the minimum depth a compiler must support is part of the ANSI C standard. It is not a bug for Keil to have a limit of 32.