Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Getting Started with C; Terminal does not compile my file |
| Date | 2015-04-23 09:30 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <mha709$3ua$1@dont-email.me> (permalink) |
| References | (4 earlier) <87d22wkrpc.fsf@kst-u.example.com> <96804a4a-53af-4a96-ac05-53b5ffd51a34@googlegroups.com> <87d22vkiuz.fsf@kst-u.example.com> <f7cc8b13-4498-48ee-8775-f342cfb0d78f@googlegroups.com> <mh94bt$jn$1@dont-email.me> |
On 22/04/15 23:39, Bartc wrote: > On 22/04/2015 22:23, Malcolm McLean wrote: >> On Wednesday, April 22, 2015 at 9:29:00 PM UTC+1, Keith Thompson wrote: > >> It crashes out on our medium-size codebase. So you shut down the >> IDE,#and have another go, and usually it works. This happens when you >> touch >> something that needs a non-trivial number of file recompiles. >> But I think it's a bug in clang rather than the IDE, because it >> reports at fatal error in a given source file and line number. >> When you look at it there's nothing wrong with the code. > > How about running the compiler outside the IDE? > >> So it's what you'd expect if someone had written an Objective C >> compiler and then made it compile C++ as well. Just as I can hold >> a conversation in French at a pinch, but with lots of mistakes - >> it's a second language from me. >> >> If the command "gcc" evokes clang, which seems to be the case, then >> we've got a philosophical question here. Are gcc and clang the >> same compiler? > > They're separate projects, but on that platform it sounds like the true > gcc isn't installed or doesn't work, so it will invoke clang. > > I think clang is designed to be a replacement (or alternative) to gcc, > and appears to support the same extensions and the same options as gcc. > (But, for x86, it doesn't generate quite as good code as gcc, unless > that's changed recently.) > clang/llvm is an alternative to gcc, with a similar function but a very different design strategy. Both support a range of languages at the front-end (gcc covers C, C++, Objective-C, Objective-C++, java, go, fortran, Ada, plus a variety of "unofficial" front-ends like Pascal. llvm also supports a variety, with "clang" being the front-end for C, C++ and Objective-C). Both have a "middle-end" handling optimisations on abstract code trees. Both have a variety of back-ends for different targets (gcc supports far more than llvm, but llvm is considered easier for making new targets). For compatibility, clang supports most of gcc's extensions (as do other serious compilers, such as Intel's) - but clang also has several of its own. Of particular note is its module system - I hope one day that will make it into gcc and the C standards. The two compilers have benefited enormously from each other for competitive inspiration and a certain degree of direct collaboration - there have been several projects for new features that are developed to work with both toolchains. As a general guideline, gcc supports more targets and more target details (like for variants of x86), and generates smaller and faster object code. llvm runs significantly faster, and has (at least until recent gcc's, which have caught up somewhat) produced better diagnostics.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Getting Started with C; Terminal does not compile my file Alla _ <modelling.data@gmail.com> - 2015-04-21 00:31 -0700
Re: Getting Started with C; Terminal does not compile my file Noob <root@127.0.0.1> - 2015-04-21 11:38 +0200
Re: Getting Started with C; Terminal does not compile my file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-04-21 11:12 +0100
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-21 06:21 -0700
Re: Getting Started with C; Terminal does not compile my file Greg Martin <greg.at.softsprocket@dot.com> - 2015-04-21 13:35 +0000
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-21 13:38 +0000
Re: Getting Started with C; Terminal does not compile my file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-04-21 14:44 +0100
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-21 08:45 -0700
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-22 05:35 -0700
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-22 10:20 -0700
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-22 10:17 -0700
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-22 12:56 -0700
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-22 13:28 -0700
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-22 14:23 -0700
Re: Getting Started with C; Terminal does not compile my file Bartc <bc@freeuk.com> - 2015-04-22 22:39 +0100
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-22 21:45 +0000
Re: Getting Started with C; Terminal does not compile my file Bartc <bc@freeuk.com> - 2015-04-23 01:28 +0100
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 09:30 +0200
Re: Getting Started with C; Terminal does not compile my file Melzzzzz <mel@zzzzz.com> - 2015-04-23 10:38 +0200
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 13:44 +0200
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-22 18:15 -0700
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 09:33 +0200
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-23 02:52 -0700
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 13:52 +0200
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-23 05:21 -0700
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-23 12:34 +0000
Re: Getting Started with C; Terminal does not compile my file Melzzzzz <mel@zzzzz.com> - 2015-04-23 15:15 +0200
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-23 13:24 +0000
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-23 06:42 -0700
Re: Getting Started with C; Terminal does not compile my file Ben Bacarisse <ben.lists@bsb.me.uk> - 2015-04-23 14:58 +0100
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 16:07 +0200
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-23 07:41 -0700
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 17:28 +0200
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-23 12:36 +0000
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 15:50 +0200
Re: Getting Started with C; Terminal does not compile my file raltbos@xs4all.nl (Richard Bos) - 2015-04-25 10:23 +0000
Re: Getting Started with C; Terminal does not compile my file Greg Martin <greg.at.softsprocket@dot.com> - 2015-04-21 13:37 +0000
Re: Getting Started with C; Terminal does not compile my file Xcott Craver <xcottcraver@gmail.com> - 2015-04-21 06:53 -0700
Re: Getting Started with C; Terminal does not compile my file Alla _ <modelling.data@gmail.com> - 2015-04-21 07:43 -0700
Re: Getting Started with C; Terminal does not compile my file G G <gdotone@gmail.com> - 2015-04-26 09:15 -0700
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-26 12:43 -0700
Re: Getting Started with C; Terminal does not compile my file G G <gdotone@gmail.com> - 2015-04-26 14:53 -0700
csiph-web