I can't find a clear answer to what C standard Microchip's XC16 v1.5 compiler use by default (xc16-gcc -> options = empty).
We clearly get a different result if we specify it to -std=C99
, but from what?!?
I can't find a clear answer to what C standard Microchip's XC16 v1.5 compiler use by default (xc16-gcc -> options = empty).
We clearly get a different result if we specify it to -std=C99
, but from what?!?
The xc16 compiler uses the C89 standard. Have a look a chapter 7 in the manual.
With the XC8 2.0 compiler and up selected, you can enable the C99 standard.