Re:Learn C in Y Minutes
by pantalaimon on Tuesday April 13, 2021 @06:38AM
(#26790432)
Little reason to not use at least -std=c11 these days
[ Parent
| on HN ]
Linux is C99, most microcontrollers use C99 or even C89. It would be nice to get the new features, but it's not always possible.
Re:Learn C in Y Minutes
by pantalaimon on Tuesday April 13, 2021 @09:40AM
(#26791973)
> most microcontrollers use C99 or even C89
Most microcontrollers are ARM Cortex-M and are programmed with a recent GCC toolchain
MSVC has C11 support only since very, very recently:
https://devblogs.microsoft.com/cppblog/c11-and-c17-standard-...
(it has a solid subset of C99 since around VS2015 though, just _Generic was missing - and ignoring VLAs, which have been "dropped" in later C standards anyway).