Am 03/23/2012 06:53 PM, schrieb haziz:
Any advantages or disadvantages to using clang, as opposed to GCC,
for developing in C on Linux? In my case this would be used for
student level programs, not production, though you are free to
discuss that as well.
clang's error messages are definitively better suited for students
(and anybody else actually)
If you want to teach them modern C, their progress on implementing C11
seems to go in different directions. gcc is getting close to have an
implementation of the atomics, probably a good subject for teaching if
you would be talking about threads, signal handlers and stuff like
that.
clang already has _Generic, so if you want to cover type generic
programming, tgmath.h and alike, clang offers more.
Jens