I'm making a C library for the embedded system community.
I was wondering: In your experiences, do most people use compilers that support C99 VLA?
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
C99 compilers have to support VLA, unlike C11/C17 ones that may optionally define
__STDC_NO_VLA__ if they for some strange reason don't support it. So you question is a bit confused, maybe you are asking this:
Q: Do most microcontroller compilers support C99? A: Yes, all of them do unless they are legacy stuff kept for maintaining older systems. Many companies are still stuck with C90 coding standards however, running compilers in C90 mode.
Q: Do all C99 compilers support VLA?
Q: Are there are C11/C17 compilers, embedded or otherwise, that doesn't support VLA?
A: I have yet to find one. All the mainstream compilers, embedded or hosted, support it.