问题
I was wondering if there are any compilers that support a considerable amount of the new C11 standard. Looking for features like Generic Selection etc.
Any suggestions?
回答1:
Pelles C version 7.00 (Release Candidate is available now)
http://www.smorgasbordet.com/pellesc/
回答2:
Your best bet is probably Clang. See the release notes for the current release and the upcoming one.
回答3:
GCC 4.9 supports generic selection . It is in general bugfixing stage before release. http://gcc.gnu.org/gcc-4.9/changes.html
回答4:
I think Clang supports generic selection.
回答5:
Intel 18 supports nearly all of C11 and supported generic selection starting in version 16.
https://software.intel.com/en-us/articles/c11-support-in-intel-c-compiler
Cray 8.5 documents support for C11 here but I haven't tested it thoroughly. I recall that atomics have been supported for a while, because they are necessary for this project to work on Cray machines.
Full disclosure: I work for Intel, but not in the compiler team.
来源:https://stackoverflow.com/questions/9804594/compilers-that-support-c11