ANSI Standard Issues
Divergence from the ANSI C Standard
The mikroC PRO for ARM diverges from the ANSI C standard in a few areas. Some of these modifications are improvements intended to facilitate ARM programming, while others are the result of ARM hardware limitations.
- Case Sensitivity. Check identifiers
- The mikroC PRO for ARM treats identifiers declared with the
const
qualifier as “true constants” (C++ style). This allows usingconst
objects in places where ANSI C expects a constant expression. If aiming at portability, use the traditional preprocessor defined constants. See Type Qualifiers and Constants. - The mikroC PRO for ARM allows C++ style single–line comments using two adjacent slashes (
//
). The comment can start at any position and extends until the next new line. See Comments. - A number of standard C libraries (ctype, math, stdlib, string) have been implemented; check the individual functions for divergence.
- Anonymous unions and structures are now supported.
C Language Extensions
mikroC PRO for ARM has additional set of keywords that do not belong to the ANSI standard C language keywords:
Implementation-defined Behavior
Certain sections of the ANSI standard have implementation-defined behavior. This means that the exact behavior of some C code can vary from compiler to compiler. This Help contains the sections describing how the mikroC PRO for ARM compiler behaves in such situations.
The most notable specifics include:

What do you think about this topic ? Send us feedback!