Slashdot Mirror


LLVM 3.5 Brings C++1y Improvements, Unified 64-bit ARM Backend

An anonymous reader writes: LLVM 3.5 along with Clang 3.5 are now available for download. LLVM 3.5 offers many compiler advancements including a unified 64-bit ARM back-end from the merging of the Apple and community AArch64 back-ends, C++1y/C++1z language additions, self-hosting support of Clang on SPARC64, and various other compiler improvements.

99 comments

  1. Oh good. by i+kan+reed · · Score: 2, Insightful

    It's one of those summaries.

    You know "update on [OSS product]"

    Why would we, the general populace of readers, want a very short summary of what this OSS product does, when we can have unclear references to the changelog?
    Why would we want a link to the homepage with more information, when we can have 2 links that also are essentially changelogs, and one direct download?

    If it's not the Linux Kernel, Firefox, or Chrome, please stop assuming everyone knows what it is.

    1. Re:Oh good. by Anonymous Coward · · Score: 1

      But it's LLVM 3.5 along with Clang 3.5! And it unifies the Apple and AArch64 backends along with C++1y/C++1z additions! It's self-explanatory, surely?

    2. Re:Oh good. by Anonymous Coward · · Score: 0, Insightful

      It's one of those summaries.

      You know "update on [OSS product]"

      Why would we, the general populace of readers, want a very short summary of what this OSS product does, when we can have unclear references to the changelog?
      Why would we want a link to the homepage with more information, when we can have 2 links that also are essentially changelogs, and one direct download?

      If it's not the Linux Kernel, Firefox, or Chrome, please stop assuming everyone knows what it is.

      Everyone knows what LLVM is.

    3. Re:Oh good. by Anonymous Coward · · Score: 0

      You're not entitled to another person's source code.

    4. Re:Oh good. by Anonymous Coward · · Score: 0

      And you're not entitled to eat the Cheetos crumbs in his beard, or the dead skin and lint between his toes. Not that you'd want them anyway. Just saying...

    5. Re:Oh good. by jandrese · · Score: 1

      Man, if only there were some way to look up information you don't know. Some service you could type a clearly easy to search for string like "llvm" into to get as much information on the topic as you need...

      Are you reading Slashdot in print form in some place with no internet access? Do you have to call your secretary so she can type out the comments on a punched card to feed into the internetotron?

      --

      I read the internet for the articles.
    6. Re:Oh good. by Anonymous Coward · · Score: 0

      Is it because its funded by apple, a company that has reportedly given data to NSA,

      Citation Needed

    7. Re:Oh good. by Anonymous Coward · · Score: 0

      Back off or I'll give you a parrot, man.

    8. Re:Oh good. by Anonymous Coward · · Score: 0

      Hell you could even use slash dots own search box to find out LLVM has been extensively covered on this site before.

    9. Re:Oh good. by Anonymous Coward · · Score: 0

      Check his posting history, it reads like he is a paid DNC shill for all the political stories. He also only posts weekdays during the daytime and any tech story that isn't grasped by the average non-IT worker he posts something like above acting like he has never used a computer before.

      Your explaniation will not help him. I doubt he understands the difference between a compiler and a linker.

    10. Re:Oh good. by i+kan+reed · · Score: 0

      "Hey check his post history"
      --Someone too cowardly to have one.

    11. Re:Oh good. by i+kan+reed · · Score: 2, Insightful

      How about, fuck you, you could just look up LLVM anytime you wanted news about it. Why come to slashdot for that? See how stupid that "resources exist" argument is?

      Decent journalism isn't hard, and I don't feel that basic fucking context is too much to ask of a summary.

    12. Re:Oh good. by Anonymous Coward · · Score: 2, Informative

      "because its a piece of non-copyleft-you-can-make-me-proprietary-any-day shitty pile of today-you-can-read-my-src-tomorrow-you-get-an-eula crap"

      That makes it more useful, not less. That means it can be the basis for commercial products. People will buy stuff because of LLVM. People will get paid because of LLVM. Maybe you. Do you want to make ideologically pure software, or do you want a roof over your head and food to eat? Are you utopian or realist?

      And also, you're flat out wrong. If LLVM version 8.0 comes with a EULA that says you can't use it for anything without paying Apple, then you can still fork the BSD-licensed source code for version 7.9 and use that. I'd bet the forked version will be more widely used than the closed version.

    13. Re:Oh good. by Anonymous Coward · · Score: 0

      TripMaster Monkey, we know it's you. And your new "i kan reed" persona is just as anonymous as any Anonymous Coward is.

    14. Re: Oh good. by Anonymous Coward · · Score: 1

      It's the new gcc. Any questions?

    15. Re:Oh good. by lisaparratt · · Score: 0

      Maybe if the GCC team had actually *believed* in their license, and not also used intense obfuscation to stop parts of their toolchain being abstracted out, we wouldn't be in this mess. As it is, though, LLVM+clang scratch many itches that GCC can't even reach.

    16. Re:Oh good. by Anonymous Coward · · Score: 1

      I miss the good old days when it was just geeks that would understand the story posting on Slashdot. Now we have to put up with posers.

    17. Re:Oh good. by Anonymous Coward · · Score: 1

      Hitler paid people, too.

      If one met his requirements and followed his rules. He was kind of like the GPL, fit into a narrow set of rules that are designed to create a better society in his/their opinion or else.

    18. Re:Oh good. by Drishmung · · Score: 1

      Well, that didn't take long.

      --
      Protoplasm. Quiet Protoplasm. I like quiet protoplasm.
    19. Re:Oh good. by Bill_the_Engineer · · Score: 1

      It is not out of the question for Slashdot submissions to expect their target audience to know about LLVM and Clang. If you didn't then you weren't the target audience.

      It would be like me having to write "Obama (the current US president)..." in a Democratic Party Newsletter or "Alabama (a US State)..." on an American news site.

      Do we have to explain what a "Tesla Model S" or a "Ford Escort" is to the reader? No, because they been around long enough that it can be expected that most of the audience will know about them. LLVM and Clang fall in the same category for the audience of this site.

      Instead of reading the article or looking it up on Google, you decided the best thing to do was whine about it. It seemed like a counter-productive move since there are other stories you could have read and commented on.

      Maybe you'll find CNet, USA Today, or Highlights for Children more acceptable.

      --
      These comments are my own and do not necessarily reflect the views or opinions of my employer or colleagues...
    20. Re:Oh good. by i+kan+reed · · Score: 1

      Right... let's take that a bit of a different direction, and instead of the US president, talk about, say, the minority whip and see how well your analogy holds up.

    21. Re:Oh good. by Anonymous Coward · · Score: 0

      If it's not the Linux Kernel, Firefox, or Chrome, please stop assuming everyone knows what it is.

      "LLVM 3.5 offers many compiler advancements..."
      "C++1y/C++1z language additions..."
      "...various other compiler improvements..."

      Yeah, no clues there as to what this product is.

      "Siri, what is LLVM?"
      "LLVM is a compiler that--"
      "Siri, what is a compiler?"
      "A compiler is a software program that translates program code--"
      "Siri, what is program code?"
      "Program code consists of instructions written in a computer language--"
      "Siri, what is a computer language?"
      "Oh, for Pete's sake, shut the fuck up, I'll open Wikipedia for you!" :-P

    22. Re:Oh good. by Anonymous Coward · · Score: 0

      The ability to create a end-user hostile, anti-competitive, exploitative EULA is not necessary for creating a commercial product. It is only necessary for being a complete cunt.

    23. Re:Oh good. by armanox · · Score: 1

      On the contrary, it is open source. And it provides competition for GCC. Competition is good - it will cause the GNU team to have to improve their compiler. LLVM also gives those of us that don't like GCC a free alternative to use (though I doubt it'll ever support my platform of choice).

      --
      I'm starting to think GNU is the problem with "GNU/Linux" these days.
    24. Re:Oh good. by Threni · · Score: 1

      It would be a good analogy if you were talking about, say, a site which was targeted at - and largely read by - people interested in political issues.

      It's perfectly reasonably to understand that the majority of Slashdot users either know what Clang/LLVM is, or are willing and capable of looking them up. Clearly, if you've not idea what Clang is, then you're going to skate on over the headline to the next stor, just like I did when I saw the headline about giving cyborgs rights.

    25. Re:Oh good. by Anonymous Coward · · Score: 0

      Jesus Christ. Way to take an absurd tenuous connection and reify it. It's about as strong as "RMS breathes air and Hitler breathed air, therefore they're alike."

      Obviously you need it spelled out:
      Hitler: "We're going to make a better world for you. If you're German/Aryan. Everyone else be damned."
      RMS: "We're going to make a better world for you, by sharing our work on the condition that you share yours as well."

      I have to conclude that you're either insane or just insanely blinkered.

    26. Re:Oh good. by Anonymous Coward · · Score: 0

      They're headquartered in the US. How much more evidence to you need?

    27. Re:Oh good. by BitZtream · · Score: 1

      though I doubt it'll ever support my platform of choice

      Really? What platform would you be referring too, I'm genuinely curious.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    28. Re:Oh good. by BitZtream · · Score: 1

      His analogy holds up pretty much perfectly.

      I would expect someone who reads the Democratic Party Newsletter to know who the majority whip is, but not really anyone else. Pretty much just like anyone on slashdot who isn't new should have hard of llvm and clang. Its a fairly common talking point for slashdot stories and comments.

      If you don't know what LLVM and clang are, slashdot really isn't someplace you should visit frequently unless you willing to learn what they are.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    29. Re:Oh good. by perpenso · · Score: 1

      though I doubt it'll ever support my platform of choice

      Really? What platform would you be referring too, I'm genuinely curious.

      My understanding is that LLVM is skipping various "legacy" platforms. 16-bit x86 came to mind but when I googled it I found that Intel is actually working on 16-bit x86 support. Some boot loaders and emulators apparently use 16-bit code.

      I was going to make a snarky Z80 comment but when reading the 16-bit Intel thread I found another potential snarker discovered that a Z80 backend for LLVM exists.

      Where the LLVM devs may have no interest it seems the legacy communities or other parties may step in.

      While there is no technical reason not to use LLVM I expect it won't be very popular with the GNU Hurd users.

    30. Re:Oh good. by i+kan+reed · · Score: 1

      Sorry, but democratic-party-news-letter::slashdot isn't an analogy that holds up. More like WashingtonPost::slashdot.

      (And democratic party newsletters would totally mention the name of the whip, you're totally crazy)

    31. Re:Oh good. by Anonymous Coward · · Score: 0

      They're headquartered in the US. How much more evidence to you need?

      Being headquartered in the US is not evidence.

    32. Re:Oh good. by Anonymous Coward · · Score: 0

      Both democratic-party-newsletter and slashdot target a specific audience where the DNC newsletter is aimed at democrats and Slashdot is aimed at "Nerds" and have a very large technologically and computing savvy audience.

      The Washington Post caters to a general audience that would like to know what is going on around them. They write their articles to cater to a general audience.

      Sorry no matter how you would like to change Slashdot into the Washington Post (judging by all of your political posts), they are not the same.

    33. Re:Oh good. by i+kan+reed · · Score: 1

      Oh look. A moron hating newspapers.

      That's new.

    34. Re:Oh good. by armanox · · Score: 1

      irix64-mips4. It's sorta my understanding that they are going with "if it works, great, but we're not going out of our way to make it work" attitude. I'm going to give it a test to see if it works, since GCC dropped IRIX.

      --
      I'm starting to think GNU is the problem with "GNU/Linux" these days.
    35. Re:Oh good. by ConceptJunkie · · Score: 1

      > Maybe you'll find CNet, USA Today, or Highlights for Children more acceptable.

      And you're expecting him to know who Goofus and Gallant are?!

      --
      You are in a maze of twisty little passages, all alike.
    36. Re:Oh good. by Anonymous Coward · · Score: 0

      You must be mentally retarded.

  2. nerds? by Bloke+down+the+pub · · Score: 1

    Nerds are not interested in champagne & handbags. Get ye to idle!

    --
    It's true I tell you, feller at work's next door neighbour read it in the paper.
  3. Wrong release note links; here's the right one by Guy+Harris · · Score: 4, Informative

    The article pointed to the very very very very very incomplete release notes for stuff after 3.5.

    You wanted to link to the 3.5 release notes.

    1. Re:Wrong release note links; here's the right one by jandrese · · Score: 1

      Where are the CLang release notes? They are not where I expect them to be. I was really hoping they've implemented C11's _atomic keyword, but I have my doubts.

      --

      I read the internet for the articles.
    2. Re:Wrong release note links; here's the right one by fnj · · Score: 1

      Yeah, somebody please PLEASE track them down. Frankly LLVM itself is boring (don't hit me). The clang part is where the interesting stuff is. Why in hell doesn't somebody fix that miserable horror of a website?

      Look at this fucking page. As I write this the title says "Clang 3.5 (In-Progress) Release Notes - Clang 3.6 documentation". The top heading says "Clang 3.6 documentation". The level 2 subheading says "Clang 3.5 (In-Progress) Release Notes". The level 3 heading says "Clang 3.5 (In-Progress) Release Notes". And the virtually empty content clearly relates to day 1 of the development of 3.6. Psst - nobody CARES about 3.6 on the day 3.5 is released. Meanwhile (again, as I write this) there is not a single occurrence of "3.5" on this other page on clang C++ compliance.

      I. Kid. You. Not.

      I wouldn't ride them this hard, but that page has been borked in that general fashion for months, if not YEARS. I know this documentation stuff is anathema to the guys doing the real programming work, but they should delegate at least ONE guy whose only job is documentation and the website.

    3. Re:Wrong release note links; here's the right one by fnj · · Score: 1

      OK, I think I found it - by downloading the clang source, opening the release notes file in the archive, and doing a google search for the exact phrase.

      Hope this helps. It's actually great quality work, if they only made it possible to FIND it on the website.

    4. Re:Wrong release note links; here's the right one by Anonymous Coward · · Score: 0

      Oh, rest assured it's been YEARS. The LLVM guys are utterly clueless about documentation. I'm not even going to apologize for making that remark.

      For years, they had a "Getting Started" task list. On that list, the first 3 items were "Read the documentation", sarcastically repeated 3 times. You click the link to the documentation, and it immediately informs you it is "out of date." Some kind of funny joke I guess. I think they at least fixed that a while back, although I'm pretty sure the list still has "read the documentation" 3 times. So clever.

      Then these open source project guys, when you ding them on crap like this, they say "well, you *could* help out..." ... Well yeah, I *could* help out, IF I could learn how to use your library properly, which I can't do, because you DIDN'T DOCUMENT IT PROPERLY you TWIT.

      God. It's like a Monty Python skit with these clowns.

      Sleep well, everybody, knowing that these are the tools that we bet the farm on.

    5. Re:Wrong release note links; here's the right one by flargleblarg · · Score: 1

      Thank you for finding that!

  4. Is there any point continuing GCC's development? by Anonymous Coward · · Score: 2, Insightful

    I've been using LLVM and Clang a lot lately. They're an exceptionally good compiler system. The more I use it, the more I ask myself, Is there even any point continuing the development of GCC?

    All software projects come to an end eventually. Something better comes along, and those who can't compete are better off giving up. I think that GCC has entered that phase, now that we have LLVM and Clang available to us.

    LLVM and Clang have a better code base, a freer license, better runtime performance, better corporate support (probably because of the freer license), are proven to work well on major platforms like OS X and FreeBSD 10, and are starting to offer superb code optimization.

    The only things GCC has in its favor are that it's entrenched, and that it supports some rarely-used languages and platforms that LLVM and Clang don't support. Neither of those is particularly impressive these days. People using Ada and Fortran use the better commercial compilers out there, not GCC. People using GCC on 1990s-era embedded systems are pretty much using a limited subset of C.

    I don't even think that LLVM and Clang need the "competition" that GCC barely brings. The backers and developers of LLVM and Clang are motivated on their own to continually improve their product.

    So I think GCC has started to outlive its usefulness. It may have been a trailblazer back in its heyday, but it's old hat now. There's really no need to continue developing it. LLVM and Clang are the future. GCC is a relic from the 1980s and 1990s.

  5. Lies by Tailhook · · Score: 2, Funny

    Apple didn't contribute any work to LLVM/clang because LLVM/clang are licensed with U of I's BSD-ish and, as we all know, corporate capitalist pig-dogs will not contribute if they're not forced to by license requirements.

    Can't believe anything you read on Slashdot these days.

    --
    Maw! Fire up the karma burner!
    1. Re:Lies by Anonymous Coward · · Score: 0

      Ummm... wrong?

      Chris Lattner-- the guy who created LLVM as a graduate project has worked for Apple since 2005. While I hate the pig-dogs as much as the next good kommie your comment is idiocy.

    2. Re:Lies by Anonymous Coward · · Score: 0

      Your sarcasm detector is broken.

    3. Re:Lies by Anonymous Coward · · Score: 1

      But Apple did use the hard work of open source developers to subsidize a closed platform of user and developer hostile products. When companies want to exploit their customers to the fullest they should not be able to benefit from the efforts of open source developers, they should have to hire developers and write their own code from scratch. All BSD licensing accomplishes is the depression of wages paid to developers. GPL licensing makes up for the depression of wages by creating a better world.

  6. Retarded and wrong comment by mveloso · · Score: 1

    Maybe if you had read the release notes you wouldn't have posted such a retarded comment. Oh, and large chunks of the llvm/clang team work at Apple.

    "During the 3.5 release cycle, Apple released the source used to generate 64-bit ARM programs on iOS platforms. This took the form of a separate backend that had been developed in parallel to, and largely isolation from, the existing code.

    We decided that maintaining the two backends indefinitely was not an option, since their features almost entirely overlapped. However, the implementation details in both were different enough that any merge had to firmly start with one backend as the core and cherry-pick the best features and optimisations from the other.

    After discussion, we decided to start with the Apple backend (called ARM64 at the time) since it was older, more thoroughly tested in production use, and had fewer idiosyncracies in the implementation details.

    Many people from across the community worked throughout April and May to ensure that this merge destination had all the features we wanted, from both sources. In many cases we could simply copy code across; others needed heavy modification for the new host; in the most worthwhile, we looked at both implementations and combined the best features of each in an entirely new way.

    We had also decided that the name of the combined backend should be AArch64, following ARM’s official documentation. So, at the end of May the old AArch64 directory was removed, and ARM64 renamed into its place.
    "

    1. Re:Retarded and wrong comment by Anonymous Coward · · Score: 0

      See Poe's Law.

    2. Re:Retarded and wrong comment by caseih · · Score: 2

      Oh dear. I guess your browser doesn't render the humor or sarcasm tags properly. The parent comment was intended to be snarky humor poking fun at those of us who think the gpl is a good idea. Whether or not it was actually funny is debatable of course.

    3. Re:Retarded and wrong comment by sessamoid · · Score: 1

      Oh dear. I guess your browser doesn't render the humor or sarcasm tags properly. The parent comment was intended to be snarky humor poking fun at those of us who think the gpl is a good idea. Whether or not it was actually funny is debatable of course.

      With a user number about the same as mine, you have spent enough time on the internet to realize that sarcasm generally doesn't communicate well through plain text. No matter how outlandish and stupid you think your sarcasm sounds, I guarantee you that there is a significantly non-zero number of people on the same forum who are actually stupid enough to post in earnest what you posted sarcastically. So you shouldn't be surprised when people take your sarcasm as stupidity in earnest.

      --
      "No, no, no. Don't tug on that. You never know what it might be attached to."
  7. The FSF/GNU folks overreached with GPL v3 ... by Anonymous Coward · · Score: 1, Interesting

    The FSF/GNU folks overreached with GPL v3. They overestimated their importance, pushed a little too hard, and get spanked by Darwin. Both the scientist and the kernel.

    Gcc being displaced was bound to happen. When politics guide engineering the long term is doubtful.

    1. Re:The FSF/GNU folks overreached with GPL v3 ... by Ash+Vince · · Score: 2, Interesting

      The FSF/GNU folks overreached with GPL v3. They overestimated their importance, pushed a little too hard, and get spanked by Darwin. Both the scientist and the kernel.

      Gcc being displaced was bound to happen. When politics guide engineering the long term is doubtful.

      Unfortunately this is a pretty spot on assessment of the situation in my mind.

      Ok, It was annoying that companies were starting to find ways to use OS technology as center pieces in their products and not opening all of their source code to let people tinker with it. The problem their though is that in some cases if they did that then they would reveal too much about things like the underlying hardware that might be under NDA's forced upon them by other companies

      Given enough time this sort of problem might have solved itself as companies slowly moved away from doing business in this way and embracing ideas that ultimately gave them long term benefit (ie: free code), but the GPL3 seemed a crude attempt to force too much change too quickly on business executives who have too much to lose, so are by that point in their careers too conservative.

      --
      I dont read /. to RTFA, I read /. to offend people in ignorance.
    2. Re:The FSF/GNU folks overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      > They overestimated their importance, pushed a little too hard, and get spanked by Darwin. Both the scientist and the kernel.

      Since when is Darwin a kernel?

    3. Re:The FSF/GNU folks overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      > The FSF/GNU folks overreached with GPL v3.

      This is your opinion. You are entitled to it, but you aren't necessarily right.

      > Gcc being displaced was bound to happen.

      [citation needed], as they say. Look, LLVM is fresh, new, exciting technology. It surpasses GCC in many things and thus deserves its place. GCC surpasses LLVM in many other things and deserves its place too.

      We all are best served if both continue to exist and to learn from each other (while it'll be difficult for LLVM to copy verbatim pieces of GCC code, for license reasons, it's still possible to study, copy ideas and compare code generated -- in both directions, creating riches for us all).

    4. Re:The FSF/GNU folks overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      > This is your opinion. You are entitled to it, but you aren't necessarily right.
      Duh. He's not necessarily wrong either.

      Do you fucking understand that people have a general right to opinions, and your wishful thinking doesn't transcend reality?

      Learn from each other blah blah blah. FSF fucked up.

    5. Re:The FSF/GNU folks overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      > They overestimated their importance, pushed a little too hard, and get spanked by Darwin. Both the scientist and the kernel.

      Since when is Darwin a kernel?

      Late 1990s. Its what Apple uses for the guts of Mac OS X, instead of anything GNU'ish. And I guess its more than just the kernel.

    6. Re:The FSF/GNU folks overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      The kernel is XNU, not Darwin. Darwin is an OS.

    7. Re:The FSF/GNU folks overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      Gcc being displaced was bound to happen. When politics guide engineering the long term is doubtful.

      Look, LLVM is fresh, new, exciting technology. It surpasses GCC in many things and thus deserves its place. GCC surpasses LLVM in many other things and deserves its place too.

      You missed the point, actually you deleted it. I reinserted it for reference. Ponder it.

      Its not about one technical feature or the other. Its about gcc being inherently handicapped from day 1. Its design is limited by politics. When features and functionality have to pass a political test to be included a project is doomed to be second rate in the long run. It may fill a niche for a while but superior unrestricted competitors will arise and displace it, and the gap between the two will become wider and wider over time.

    8. Re:The FSF/GNU folks overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      > Its not about one technical feature or the other. Its about gcc being inherently handicapped from day 1. Its design is limited by politics.

      You've failed to show where exactly that happens. Just one concrete example. Otherwise you're just waving hands.

      I suspect you're just a classical case of GPL-phobia. Talk about zealots...

    9. Re:The FSF/GNU folks overreached with GPL v3 ... by Grant_Watson · · Score: 2

      I don't follow the compilers very closely, so my recollection may be fuzzy, but I think this is what the grandparent was getting at:

      In the past some people have proposed giving GCC a clear, serializable intermediate code so that one could use GCC front ends and back ends independently of the rest of GCC. The leadership viewed this as an end run around the GPL, because whatever produced or consumed this intermediate code would not need to link to the invoked portions of GCC. Tight coupling between the front ends and back ends was therefore treated as something to be encouraged for licensing reasons.

      LLVM's design by contrast centers around its bytecode. Since it has a BSD-like license the question of whether you link to the compiler's code or fork/exec it is unimportant.

      Since the emergence of LLVM, it's my understanding that the GCC leadership have softened their views -- the alternative to invoking GCC in a separate process is now to use LLVM, rather than to link to GCC and release one's source code; thus purely technical concerns can determine the design of GCC also.

  8. Re: Is there any point continuing GCC's developmen by Anonymous Coward · · Score: 0

    Never underestimate the power of entrenchment and inertia. None of the embedded projects that I use (or heard of) are moving away from GCC.

    GCC is pretty awesome, available for countless arches, everyone knows it, and it gets the job done. I just don't see it rolling over and dying any time soon.

  9. Is there any point continuing GCC's development? by Anonymous Coward · · Score: 5, Insightful

    rarely-used languages and platforms

    Rarely-used platforms? Tell that to all the people developing for various embedded platforms like AVR which LLVM doesn't support. Those aren't rarely used.

  10. The bigger joke: by Anonymous Coward · · Score: 1

    Go read gpl-violations.org's mailing list.

    At least 3/4s of *EVERYBODY* are violating the GPL and not releasing source code. And we're not talking small companies either. Mediatek, Allwinner, TomTom, Renault (via TomTom derived systems), Zyxel, etc.

    The real solution to this whole shitfest is either to start enforcing criminal copyright law vigorously against everyone, let the rich abuse the 'lower' classes, or simply abolish copyright law and let it turn into a free for all. If nobody is going to obey the rule of law (And give that both corporations and the government seem to be flagrantly violating it while demanding laws beneficial to them be enforced vigorously), then there's no point in rule of law existing, in which case we should go back to rule by force or rule by mob, which isn't far from the way things are being treated nowadays.

  11. Re:Is there any point continuing GCC's development by boristhespider · · Score: 1

    Actually I still use gcc for gfortran - I can't personally afford to use the commercial license, and I have code I want to maintain and develop in Fortran. But on Windows I develop C++ in either MSVC, due chiefly to the fact I like its debugger better than any other I've worked with, or in Clang, and on Linux I develop C++ in Clang. I'm glad gcc is there but my default these days is certainly Clang.

  12. Re:Is there any point continuing GCC's development by Anonymous Coward · · Score: 5, Informative

    Better corporate support? I might have missed it, but e.g. Intel, Google, ARM, AMD, etc. are still also making significant contributions to GCC.

    Better runtime performance? Have you even read the Phoronix article?

    People using Ada and Fortran using the better compilers out there... Eh... GNU Ada is *the* Ada compiler standard, and GNU Fortran is widely used even in high-performance computing because the commercial compilers aren't really better at all (and generally more buggy).

    Go do your home work.

  13. Re:Is there any point continuing GCC's development by boristhespider · · Score: 1, Interesting

    "GNU Fortran is widely used even in high-performance computing because the commercial compilers aren't really better at all (and generally more buggy)."

    While I've certainly encountered (and notified Intel of) bugs in ifort, and more than I'd expect in something that cost the university a pretty parcel of money, I wouldn't even begin to pretend that gfortran is as good for high-performance computing as ifort. Unless you're triggering an ifort bug, and I haven't hit a genuinely serious one since a weird memory cap back in 2005, or using ifort on some esoteric architecture, you are *never* getting better performance out of gfortran optimised code compared to ifort optimised code. They may be equivalent for a lot of operations, but for others ifort is simply a lot better, particularly when tuned to a particular Intel chipset. I use gfortran a lot and I don't have any serious complaints about its optimisation, but ifort's is better.

  14. Re:Is there any point continuing GCC's development by Eravnrekaree · · Score: 4, Insightful

    GCC's support for Fortran and Ada make it valuable, the point is the need for an open source compiler so when your requirement is open source a commercial compiler wont do. Many assiduously avoid closed source software and want to be able to have the facility for ada and fortran. Many "infrequently used" platforms are more important than you think, such as the system Z platform from IBM.

  15. Re: Is there any point continuing GCC's developmen by Anonymous Coward · · Score: 0

    ARM's new compiler for embedded IP cores is LLVM based, so many commercial projects will be using it, but not necessarily knowing about it (they typically buy the toolchain, sometimes set up as ready-to-go VM's, and just hit build in eclipse/other IDE).

  16. Re: Is there any point continuing GCC's developmen by Bengie · · Score: 1

    The GCC team is merging with LLVM. Even they think GCC is hopeless in the long run.

  17. Firefox and LLVM by tepples · · Score: 1

    The Mozilla Firefox web browser is the open-source successor to Netscape Navigator. (In fact, Netscape Navigator has been built with the same Gecko engine that powers Firefox since Netscape 6.) And the Firefox developers are doing interesting things with LLVM, such as static analysis and the ASan bounds checker.

  18. Re:Is there any point continuing GCC's development by Anonymous Coward · · Score: 0

    If GCC's Fortran and Ada support are so valuable, then why do they see so little use? I worked in the aerospace industry for years, and more recently in physics research in academic settings. Ada was and is still used in industry, but commercial compilers were and are the norm. The same goes for Fortran in industry and academia. Anyone doing anything remotely serious, even if they're just grad students, will end up using a commercial compiler specifically targeting the platform they're working with. Even undergrads will typically avoid the GCC Fortran compiler if they can, because it's, well, not very good at all. Ada and Fortran are used, but GCC is very rarely used to compile software written in those languages.

    And anyone using System z or similar systems is using one of the commercial compilers. You're not going to pay large sums of money on hardware and system software, only to squander it away by using a half-assed Ada or Fortran compiler like GCC. And if you're one of those hold-outs still using a Sun workstation from the 1990s, you might as well just get the shittiest consumer-grade PC you can find these days. It'll be far faster than that Sun workstation.

  19. Re:Is there any point continuing GCC's development by Freultwah · · Score: 0

    Better runtime performance? Have you even read the Phoronix article?

    So there is just one, right? One lone article on Phoronix?

  20. Re:Is there any point continuing GCC's development by Anonymous Coward · · Score: 0

    I'm just curious to know what metrics you used to determine that LLVM/Clang have "a better code base" .. ?

  21. Re:Is there any point continuing GCC's development by tlhIngan · · Score: 1

    The more I use it, the more I ask myself, Is there even any point continuing the development of GCC?

    Well, the "advantage" of GCC is it's GPL. To a large number of FOSS people, the GPL is a far better license than BSD, so it doesn't matter if LLVM/CLang is better, superior or whatever, GCC is GPL and that is all that matters.

    Also, there's a lot of GCC-isms out there in the code, many of which are not supported by LLVM/Clang or other compilers and they often do strange things so porting them to use another compiler is often difficult.

    And GCC supports far more backends and languages, so it still has a place.

    Of course, LLVM/Clang is progressing quickly because of extensive corporate support (being BSD licensed versus GPLv3), and projects like Free/Net/OpenBSD love the fact that the entire base OS can be BSD licensed now rather than having to rely on a non-BSD component.

  22. What's all the fuss about? by IllForgetMyNickSoonA · · Score: 2

    What's the LLVM / clang fuss about anyway? I keep hearing about LLVM for years already, it's presented by its' supporters (of which many have never actually even tried it out, I bet!) as "The Solution To All (alleged) GCC Problems", but it somehow fails to replace the GCC as an omnipresent compilation system.

    Until there is not a single Linux distribuition out there compiled with LLVM / clang, and there still is none, it will just not cut it.

    Besides, as the Phoronix article shows, it's also not on-par performance-wise.

    I'd love to move to a compiler with better / more understandable errors and warnings, especially for C++, and which compiles faster - but until the code does not execute at the same speed (and it seems it mostly lags behind GCC), and until it is not integrated into the system adequately (read: LLVM-based distribution), I do not see the point in switching.

    1. Re: What's all the fuss about? by IllForgetMyNickSoonA · · Score: 2

      Replying (again) to my own post, just found out that llvm supports only DWARF3 debugging imformation, while gcc is on a DWARF4. One more reason to wonder about where the llvm buzz comes from.

    2. Re:What's all the fuss about? by KiloByte · · Score: 2

      With compilers, what counts is the speed of compiled code rather than compilation speed, and here clang loses by quite a bit.

      Compilation speed really matters only in rapid compile-debug cycles, but there clang, despite winning on compile speed, is hindered by producing worse debug info.

      --
      The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
    3. Re: What's all the fuss about? by IllForgetMyNickSoonA · · Score: 2

      I agree (except that I value compile time higher than you do, it seems, but clang doesn't seem to deliver THAT much in this area either), and that's why I can't do differently but wonder what the fuss is all about.

    4. Re:What's all the fuss about? by Anonymous Coward · · Score: 0

      Except when you are a developer.

    5. Re:What's all the fuss about? by gnasher719 · · Score: 1

      With compilers, what counts is the speed of compiled code rather than compilation speed, and here clang loses by quite a bit.

      Says who? For the first statement, I haven't seen any code in the last few years where the difference between compiler optimisations would have made any difference. I haven't actually seen any code that needed any cleverness. I have seen code that needed stupidity removed, but nothing else.

      For the second statement, there is a benchmark that shows gcc to be better, and goes what, the gcc developers try their best to optimise for it, while everyone else ignores it. The results are predictable.

  23. Re:Is there any point continuing GCC's development by loufoque · · Score: 0

    While both GCC and Clang are buggy, I have found that some of the bugs of clang were more problematic than gcc's.
    That's a good reason for gcc to go on living.

  24. Re:Is there any point continuing GCC's development by aaaaaaargh! · · Score: 1

    I'm using GNAT Ada with GCC, as practically all other Ada users. GNAT is the only Ada version that implements the latest language features of Ada 2012.

    Adacore alone is reason enough to continue developing GCC. The commercial version of GNAT uses GCC and is used in production systems like airplanes you fly with.

  25. What's all the fuss about? by IllForgetMyNickSoonA · · Score: 1

    Instead of only talking out of my a$$, I just compiled a small QT project of mine (8333 LOC, spread over 60 files (including auto generated moc files), lines counted with "wc -l"), with gcc 4.8.2 and with clang 3.5 (these are per default available on Ubuntu 14.04), and it seems that the compilation times are nearly identical:

    CLANG:

    real 0m26.100s
    user 0m24.815s
    sys 0m1.208s


    GCC:

    real 0m27.936s
    user 0m26.715s
    sys 0m1.755s


    All files (including compilers, libraries and includes) are on an SSD. Difference of 2 seconds or some 7%. Not exactly to be ignored, but not enough to make me smile either. At least I didn't have to change much to get it to compile, except replacing 1.0d with (double)1.0.

  26. Re:Is there any point continuing GCC's development by IllForgetMyNickSoonA · · Score: 1

    Actually, it seems that Phoronix tests are the best available around - at least a quick search didn't reveal any further recent tests. Besides, that's what TFA links to.

    If you wish to imply that Phoronix tests are somehow skewed in favour of GCC, why don't you provide a link to tests claiming otherwise?

  27. Re:Is there any point continuing GCC's development by Anonymous Coward · · Score: 0

    http://linux.slashdot.org/story/14/07/27/1838219/linus-torvalds-gcc-490-seems-to-be-terminally-broken

  28. Everything a nerd could want by Anonymous Coward · · Score: 1

    Slashdot has everything a nerd could want

    Apart from two things: Editors and Journalism.

  29. Re:Is there any point continuing GCC's development by Anonymous Coward · · Score: 1

    Here's how I measure it:

    1. I pick a certain part of the compiler, or a certain piece of functionality. Let's say the handling of C++'s throw() specifier, as an example.

    2. I find the LLVM/Clang code for handling that functionality. It's easy to find, and then it's easy to follow. The code is clear, concise, and well structured.

    3. I try to find the GCC code for handling that functionality. It's hard to find, and even once it's found it's hard to follow. The code is unclear, and usually not very well structured.

    4. Repeat the above steps for other compiler or language functionality, noticing that it's always much easier to find and follow LLVM/Clang's code than it is to follow GCC's.

    I've been using C on nearly a daily basis in industry for over 25 years now. I've been using C++ almost daily for over 20 years. I've seen a lot of code in both languages, and I've written a lot of code in both languages. I can tell you for a fact that LLVM/Clang's code is very clean, especially for a project of its size and complexity. GCC's code, on the other hand, is not very maintainable at all. Hell, this is probably why we've seen LLVM/Clang advance so quickly and even pass GCC in most ways, while GCC is struggling to remain relevant.

  30. Re:Is there any point continuing GCC's development by slashdice · · Score: 0

    Do you need a metric to determine that pizza tastes better than dog shit? Take a look at the GCC codebase and take a look at the llvm/clang codebase. I don't know how anyone could dispute it. (Even if you hate C++, GCC code emulated C++ and has finally started using C++ directly). GCC intentionally fucked up their code for political reasons (to keep people from bypassing the GPL spirit). llvm/clang also have the advantage of being a newer codebase. Some of GCC's code dates back to the 80s and they assume you may be using a 1986-era SunOS k&r compiler to bootstrap it. Remember how OpenSSL has pages of #ifdefs to support Windows 2.0 or big-endian x86 (no joke)? GCC is just as bad.

    --
    Copyright (c) 1990 - 2014 Dice. All rights reserved. Use of this comment is subject to certain Terms and Conditions.
  31. Re: Clang speed by Anonymous Coward · · Score: 0

    Try compiling Freeorion sometime.

    Hint: if you build with debugging enabled, you need -Wa,--compress-debug-sections. One library alone generates 1.2GB of debug data. LLVM 3.5 now supports this option.

  32. Re:Is there any point continuing GCC's development by Anonymous Coward · · Score: 0

    So, Linus found a bug and it was fixed. Whop dee doo.

  33. What's all the fuss about? by Anonymous Coward · · Score: 1

    It's getting common to develop C++ with Clang, then distribute with GCC.
    Though it's not huge in Linux camps, BSD is using Clang.

    LLVMLinux getting closer (similar performance, and very few patches needed, soon none):
    http://www.phoronix.com/scan.php?page=news_item&px=MTcxNDA
    and it compiles Debian's repos quite well too, with most problems being edge cases and standard differences.
    Distributions need this groundwork first.

  34. Re:Is there any point continuing GCC's development by Freultwah · · Score: 1

    No, my point is that there are quite a lot of articles re: GCC vs. Clang on Phoronix, and that the comparisons are quite a bit more thorough and the results more varied than the parent hinted at with his/her implied claim that ‘the’ Phoronix article proves how GCC runtime performance is better. I read another article (at http://www.phoronix.com/scan.p...), and though it’s half a year old, it still shows that the compilers can be neck to neck in one area, and that they beat one another in various tests. So neither can claim absolute superiority.