18

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?

ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
  • 3
    not a direct answer because not a compiler but P99, http://p99.gforge.inria.fr/p99-html/group__C11.html, is able to emulate most features of C11 quite well, best working on the intersection of gcc family of compilers (in a broad sense) and POSIX systems. – Jens Gustedt Mar 21 '12 at 12:43

5 Answers5

9

Pelles C version 7.00 (Release Candidate is available now)

http://www.smorgasbordet.com/pellesc/

Peter Kankowski
  • 166
  • 1
  • 2
7

Your best bet is probably Clang. See the release notes for the current release and the upcoming one.

Christoph
  • 164,997
  • 36
  • 182
  • 240
6

GCC 4.9 supports generic selection . It is in general bugfixing stage before release. http://gcc.gnu.org/gcc-4.9/changes.html

Mohamed El-Nakeep
  • 6,580
  • 4
  • 35
  • 39
5

I think Clang supports generic selection.

Stefan Marinov
  • 570
  • 4
  • 14
0

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.

Jeff Hammond
  • 5,374
  • 3
  • 28
  • 45