Looking At Changes In the Newest GCC 54
cyberpead writes "With GCC 4 comes a new optimization framework (and new intermediate code representation), new target and language support, and a variety of new attributes and options. Get to know the major new features and their benefits in this article."
They've optimized it so much... (Score:5, Funny)
That they were able to reduce it down to just one C. Now it's just GC.
Re:They've optimized it so much... (Score:4, Funny)
That they were able to reduce it down to just one C. Now it's just GC.
Of course. It's a GNU Compiler.
Re: (Score:1)
Oh, GCC!
I thought they were making yet another Enterprise, the Enterprise-F. I'm like, "enuf is enuf!"
Re: (Score:1)
GCC-1701-F?
Umm, gcc 4 was released 2 years ago (Score:3, Informative)
Re:Umm, gcc 4 was released 2 years ago (Score:5, Informative)
But most developers still do not know the important differences between 4.x and 3.x other than the superficial ones like changes in headers that need to be included(ie stuff that breaks their code). For example, few seem to be aware that GCC does profile guided optimization now with -fprofile-generate and -fprofile-use switches(not even mentioned in the article).
Re:Umm, gcc 4 was released 2 years ago (Score:4, Informative)
Re: (Score:2)
Didn't know gcc did profile feedback, used to make use of that feature on sun's compiler a few years back...
Re: (Score:1, Informative)
It's been available since 2.95, about 8 years ago.
There have been lots of improvement on the use of that information since then, but the flags have existed for a long time
Re:Umm, gcc 4 was released 2 years ago (Score:5, Funny)
You missed one of the largest improvements in the four series was time travel. This article was actually published two years ago.
The Slashdot team are now frantically searching for the wormhole in their office. This is also why there are so many dupes, articles keep popping down GCC invoked wormholes.
Really, Stallman is just messing with us for modding-up comments like this one [slashdot.org].
gcc 4 is "new"? (Score:3, Informative)
I've been using it for a year and a half now.
Re:gcc 4 is "new"? (Score:5, Informative)
Re: (Score:1, Informative)
That deserves "sad but true" rather than "funny"... VC supports C89, but nothing more recent.
Re: (Score:1)
Not only that, but Microsoft have no plans whatsoever to add support for any C99 features unless they happen to accidentally do so when adding C++ features.
Re: (Score:2, Informative)
As it has done since VC2003 thanks to the hard work of Herb Sutter? DUN DUN DUN.
Re: (Score:2)
You gotta be joking..
Re:gcc 4 is "new"? (Score:5, Informative)
Re: (Score:2)
Wow...scary (Score:2, Insightful)
Wow! With all of that, you'd think I was truly enamored with GCC. Let's just say that when I'm developing software with GCC and my wife walks into the room, I feel a little uncomfortable.
That's a little creepy.
GCC? (Score:1)
Just taking his time I guess (Score:1, Funny)
TFA says GCC 4.0 was released 2 years ago... yet it's titled "Getting to know GCC 4". I guess the author took his time to "get acquainted". Best not to rush into those sort of things...
Re: (Score:3, Funny)
He was too busy getting busy with gcc 3.x when his wife wasn't in the room :)
Re:Just taking his time I guess (Score:5, Funny)
Seriously! From TFA:
Yeah, GCC 4 has more backends, the little slut.
FINALLY (Score:1)
I've been stuck on gcc 3.4.3 for a few years now. Fortran 95 here I come!!
Re:FINALLY (Score:4, Funny)
Are you implying that you're using Fortran 77?
That's just... gross!
Re: (Score:2, Funny)
Well up until today I haven't had a decent compiler for 95 - so what was I to do? Use FTN95? That's even more grosserest.
Re: (Score:3, Informative)
Well up until today I haven't had a decent compiler for 95
Other than gfortran: g95, NAG's, PathScale's, Intel's, Absoft's, Sun's, Lahey's, Portland Group's, Compaq's...
For things other than PCs, there's IBM's, Cray's, Hitachi's, Fujitsu's...
You have no excuse! But please tell me it's not that you actually like Fortran 77... :)
Re: (Score:1)
Allright dammit, you got me. Who the hell uses PURE and ELEMENTAL anyways?
Re: (Score:2)
Me. Plus modules, derived types, pointers, allocatable arrays, recursive subroutines, array sections...
Fortran 9x is likeable, even if it's still somewhat limited. I'd like to see Fortran 2003 become fully supported by major compilers in the near future -- but what I can't wait for is the co-array features of Fortran 2008, so that I can ditch MPI once and for all!
Fortran 77 is the reason why people laugh at Fortran.
Re: (Score:1)
"Fortran 77 is the reason why people laugh at Fortran."
Get off my lawn you lazy kids.
Re: (Score:2)
As an aside, going from "FORTRAN" to "Fortran" was a Fortran-90 change...
Re: (Score:2)
To me Fortran 77 is equally laughable. Starting right from the punchcard-oriented fixed format of the source files. It feels old and uncomfortable, to say the least.
Re: (Score:1)
Re: (Score:2)
Sure would be nice to have them. I suppose the gcc maintainers would never admit to someone from the openbsd group knowing what they're doing, though.
That belongs into (g)libc, not into the compiler. It's Ulrich Drepper who is blocking it (see this thread [redhat.com] on the glibc mailing list).
Re: (Score:2)
Just copy them into your source tree. BSD license lets you do that, unlike most of the glibc (LGPL) extensions.
Let me know when GCC4 is available for MingW (Score:5, Insightful)
Big deal about all this GCC4 stuff, let me know when GCC 4.x becomes available for MingW as an official build (or better yet, when the GCC community stops treating Windows builds of GCC as second class citizens)
Party like its April 2005 (Score:1)
One target language still missing: XML (Score:3, Funny)
GCC to .NET? (Score:2)
Theoretical question here:
The diagram in the article shows GCC as a bunch of language front-ends that translate to an intermediate language, then a compiler for that intermediate language that produces the machine code.
Isn't this exactly the architecture of the .NET framework? Language compilers for VB, C#, C++ that compile to intermediate code, then interpreted directly instead of to a static machine-code file?
In other words, could a back-end be developed to change GCC into a universal runtime to replace J
Re: GCC to .NET? (Score:2)
Hey, wow! What a great idea!
Coz what with the JVM, CLR, Parrot, p-code machine, LLVM, Rubinius, SWF, Lua, Squeak, Dis, Waba, Z-machine, and a whole host of others, a new VM is just what we need!!!
...
Er, sorry about that. My sarcasm chip seems to have overloaded. But several existing VMs already let you run code written in many different languages. And issues of static (before-the-event) compilation can be rather different from dynamic (while it's running) compilation; the intermediate code may be w