News for hackers. Stuff that matters.
Re:GCC 6.1 Released by jcranmer on Wednesday April 27, 2016 @10:41AM (#11580806)
gcc generally provides somewhat better code than clang, both in runtime and in object size. Clang has traditionally done better at warnings and diagnostics, although gcc has definitely closed that space in the past few years (since 4.9 or so).
Re:GCC 6.1 Released by jason_slack on Wednesday April 27, 2016 @10:46AM (#11580850)
are there circumstances where a developer should compile their products with more than one compiler to flush out issues, potentially fine tune/optimize code, etc? I've never thought about doing this.
Re:GCC 6.1 Released by lallysingh on Wednesday April 27, 2016 @10:59AM (#11580968)
Yes, at least make sure that your code compiles and the tests pass on more than one. That way you're sure that you're not depending on peculiars of one compiler (their specific behaviors that are undefined in the standard, optimizer actions, etc).
Re:GCC 6.1 Released by bschwindHN on Wednesday April 27, 2016 @11:28AM (#11581246)
And a nice way to run multiple compilers easily is by using a tool like Travis CI with their compiler matrix support.

https://docs.travis-ci.com/user/languages/c

Re:GCC 6.1 Released by gaius on Wednesday April 27, 2016 @11:16AM (#11581131)
At a previous job we ensured we got clean compiles with Visual C++, SPARCworks and xlc, even tho' all our customers were only actually interested in the Solaris version.
Re:GCC 6.1 Released by corysama on Wednesday April 27, 2016 @11:01AM (#11580992)
When I was working on multi-platform console engines, I had no choice but to compile with several highly varying compilers. It teaches you very quickly how quietly compiler-specific extensions and quirks work their way into your code.

Also, different dev environments offer different tools. A nice benefit of running in lots of environments was that I often could pick between the best tools of any platform whenever I had a problem they could help solve.

Re:GCC 6.1 Released by EliRivers on Wednesday April 27, 2016 @11:55AM (#11581567)
Yes; whenever they want to produce a higher quality product. Which I'd anticipate being "whenever possible", limited only by compiler extensions one has to use, and dev/target hardware.
Re:GCC 6.1 Released by blue11 on Wednesday April 27, 2016 @07:17PM (#11585407)
I've worked at places where we maintained a dual build, VisualC++ and Linux gcc, because we wanted to be able to develop and run in multiple environments. That forces you to write clean standard-compliant code, although in some cases it could be a pain.
Re:GCC 6.1 Released by danieltillett on Wednesday April 27, 2016 @04:35PM (#11584303)
From experience make sure you compile 32bit and 64bit versions too - this flushed out a surpring number of bugs.