Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #18958 > unrolled thread
| Started by | haziz <hsaziz@gmail.com> |
|---|---|
| First post | 2012-03-23 10:53 -0700 |
| Last post | 2012-03-24 00:27 +0100 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.c
Clang vs. GCC: Compare & Contrast? haziz <hsaziz@gmail.com> - 2012-03-23 10:53 -0700
Re: Clang vs. GCC: Compare & Contrast? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-03-23 18:32 +0000
Re: Clang vs. GCC: Compare & Contrast? Kaz Kylheku <kaz@kylheku.com> - 2012-03-23 18:51 +0000
Re: Clang vs. GCC: Compare & Contrast? Jens Gustedt <jens.gustedt@loria.fr> - 2012-03-24 00:27 +0100
| From | haziz <hsaziz@gmail.com> |
|---|---|
| Date | 2012-03-23 10:53 -0700 |
| Subject | Clang vs. GCC: Compare & Contrast? |
| Message-ID | <20372250.150.1332525190660.JavaMail.geo-discussion-forums@pbcuk5> |
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.
[toc] | [next] | [standalone]
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Date | 2012-03-23 18:32 +0000 |
| Message-ID | <0.29b93c7aa2c16c019e0b.20120323183246GMT.87ty1fnp69.fsf@bsb.me.uk> |
| In reply to | #18958 |
haziz <hsaziz@gmail.com> writes: > 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. On the few occasions when I've used it, I liked the error messages. They are some times clearer than GCC's and that must be significant for students. Can't both be installed so you can get *them* to tell you which is better for student work? -- Ben.
[toc] | [prev] | [next] | [standalone]
| From | Kaz Kylheku <kaz@kylheku.com> |
|---|---|
| Date | 2012-03-23 18:51 +0000 |
| Message-ID | <20120323113102.507@kylheku.com> |
| In reply to | #18958 |
On 2012-03-23, haziz <hsaziz@gmail.com> wrote: > 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. The most educational thing is to compile your homework programs with as many compilers as you can get your hands on without spending an unreasonable time. Run your student programs through clang as well as gcc and study their diagnostics. It's like going to two doctors to get a second opinion.
[toc] | [prev] | [next] | [standalone]
| From | Jens Gustedt <jens.gustedt@loria.fr> |
|---|---|
| Date | 2012-03-24 00:27 +0100 |
| Message-ID | <4F6D06CD.9020407@loria.fr> |
| In reply to | #18958 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c
csiph-web