Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
136
mikoC PRO for PIC32
MikroElektronika
ANSI Standard Issues
Divergence from the ANSI C Standard
The mikroC PRO for PIC32 diverges from the ANSI C standard in a few areas. Some of these modifications are
improvements intended to facilitate PIC32 programming, while others are the result of PIC32 hardware limitations.
- Case Sensitivity. Check identifiers
- The mikroC PRO for PIC32 treats identifiers declared with the
const
qualifier as “true constants” (C++
style). This allows using const 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 PIC32 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.
- The mikroC PRO for PIC32 does not provide automatic initialization for objects. Uninitialized globals and
objects with static duration will take random values from memory.
- Anonymous unions and structures are now supported.
C Language Extensions
mikroC PRO for PIC32 has additional set of keywords that do not belong to the ANSI standard C language keywords:
- code
- data
- rx
- sfr
- at
- sbit
- bit
- iv
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
PIC32 compiler behaves in such situations.
The most notable specifics include:
- Storage Classes
- Bit Fields
Related topics: Keywords, PIC32 Specifics