GCC 5.0 To Support OpenMP 4.0, Intel Cilk Plus, C++14 57
An anonymous reader writes: GCC 5 is coming up for release in the next few weeks and is presenting an extraordinary number of new features: C11 support by default, experimental C++14 support, full C++11 support in libstdc++, OpenMP 4.0 with Xeon Phi / GPU offloading, Intel Cilk Plus multi-threading, new ARM processor support, Intel AVX-512 handling, and much more. This is a big release, so those wishing to test it ahead of time can obtain the preliminary GCC 5 source code from GCC's snapshots mirror.
Re:Cool to hear I guess (Score:4, Insightful)
Corporations guide the development of GPL ... (Score:4, Insightful)
Clang/LLVM receives finance and contribution (and therefore an element of control) from Apple. Its also BSD licensed. These are not bad things at all, but its great that GCC, which GNU licensed, is an alternative.
Corporations guide the development of GPL licensed projects too. Take Linux for example, the main contributors are corporate sponsored/subsidized/etc so therefore the work is directed by corporate needs as well.
Plus there are indirect effects too. As a corporate sponsored project like Clang/LLVM becomes highly competitive or surpasses a project like GCC then a fire gets lit under GCC to make a little progress, and possibly to add comparable features that were corporate sponsored in Clang/LLVM. So corps get to indirectly influence GCC as it strives to be competitive.
Re: (Score:3)
Re: (Score:2)
They're morons then. The license of a compiler has nothing to do with the license of the generated code. Just to prevent this particular stupidity Stallman even added a specific GCC exemption at one point but this is widely understood to be implicit by common law anyway.
I've seen stupidity in corporations regarding open source or free software several times and the license it came in was the least of them. Every single time they only want a piece of paper which states they aren't responsible for whatever ha
Re: (Score:3, Insightful)
GCC is more than an alternative. It helps keep the commercial vendors on their toes and honest. At some level Linux has performed a similar function regarding commercial Unix vendors.
Re: (Score:3)
Where and how exactly?
I know llvm integrates better with IDEs, but I couldn't care less.
As far as I have seen they produce comparible code. Last time I checked gcc code outperformed llvm code most of the time, but they were very close.
Re: (Score:1)
Yeah, for embedded you can often compile with GCC for development. In the end you compile it once with a paid for compiler if you need the code size improvement. A modern GCC is very good so this last step is often not even needed.
I hope clang will drive gcc to more innovation and the other way around.
Re: (Score:2)
http://developers.slashdot.org... [slashdot.org]
Re: (Score:2)
Clang/LLVM receives finance and contribution (and therefore an element of control) from Apple. Its also BSD licensed. These are not bad things at all, but its great that GCC, which GNU licensed, is an alternative.
Are you joking? You cannot maintain a modern big compiler without strong industry support.
Take a look at GCC Git browser [gnu.org]. With a quick blush you can see that a lot of commits are coming from Red Hat, Suse, Oracle, Samsung, ARM, and so on.
Re: Cool to hear I guess (Score:1)
Re: (Score:2)
Re: (Score:2)
Clang/LLVM receives finance and contribution (and therefore an element of control) from Apple.
And GCC receives finance and contribution (and therefore an element of control) from Samsung, Red Hat, Oracle, etc...
Re: (Score:2)
Because that eliminates fandom. I think it's great the GCC and LLVM are competing. But others feel that there must be teams and that they have to support their team (rah rah rah!).
Re: (Score:2)
Here where I work we compile with both, gcc for the production release, clang for extra warning checking.
Re: (Score:3)
Re: (Score:2)
Re: (Score:3)
Re: (Score:1, Insightful)
Despite the fact actually clang controlled by apple , so as old C hacker there is no chance to even trying it.
It isnt controlled by apple, the source code is available and it is offered under a permissive open source license. So you are either spreading FUD for the restrictive foss camp or you are just an idiot, either way you lack the intellectual competence for this sort of thing anyway so neither clang nor gcc will interest you.
Re: (Score:2)
Re:Cool to hear I guess (Score:4, Informative)
Huh? As a clang contributor, I'd not noticed it being controlled by Apple. I suspect that all of the LLVM/clang developers employed by Qualcomm, ARM, Google, Intel, Facebook, Adobe, and so on would be quite surprised to discover that it's controlled by Apple too.
Apple has put a lot of development effort into LLVM/Clang over the years because they wanted to be able to use the back end and front end in places where the GPL would not be acceptable (graphics drivers, syntax highlighting in XCode). The rest of the community also benefits from this (if you use a 3D driver with X.org, you're probably using LLVM for the shader compiler, even if you don't use clang as your C compiler), but even at its peak Apple was only just responsible for about half of the development work on LLVM and now it's even less.
Re: (Score:2)
Re: (Score:2)
In summary (Score:2)
Lots of nice C/C++ updates, a few Fortran ones. Don't see anything for Objective C or Ada.
This addition looks very interesting: Cilk Plus [cilkplus.org]
Intel Cilk Plus is an extension to the C and C++ languages to support data and task parallelism.
Re: (Score:2)
It's possible that at least part of the reason for the lack of Fortran improvements is that most of Cilk Plus seems to bring to C functionality that is already present in Fortran (array notation since F90 and parallel loops since F95 or via OpenMP).
Re: (Score:2)
How does Cilk compare to OpenMP?
Re: In summary (Score:2)
Different animal. Cilk has specific instructions for parallelising loops and similar. It looks like a similar concept to Fortran's capacity to turn anything that can be done as a vector rather than as a sequential operation into a vector instruction.
OpenMP parallelizes at the block level rather than the instruction level. By all accounts (notably comments on the ATLAS mailing list), the performance is terrible.
Re: In summary (Score:2)
ADA updates would be good, bringing in the Spark 2014 and early 2015 extensions would have been nice. (Spark is a mathematically provable dialect of ADA. Well, mostly. Apparently, you can't prove floating point operations yet because nobody knows how. Personally, I think it's as easy as falling off a log table.)
There are also provable dialects of C and it would be nice if GCC had a flag to constrain to that subset. Using multiple compilers is a good way of producing incompatible binaries and nasty interacti
'Support' or Compliance (Score:2)
Is it C/C++ 'support' or is it standards compliance. That difference matters.
Re: (Score:2)
Different how?
They are going for compliance, however. They have a compliance table listing the features supported:
https://gcc.gnu.org/projects/c... [gnu.org]
that page also links to the library compliance table.
ob (Score:3, Funny)
Does it depend on systemd?
It will, give systemd a few more weeks (Score:3)
And they'll slurp gcc into systemd too.