Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
GNU is Not Unix IBM Programming Software IT Linux Technology

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."
This discussion has been archived. No new comments can be posted.

Looking At Changes In the Newest GCC

Comments Filter:
  • by Anonymous Coward on Thursday October 30, 2008 @02:36PM (#25573221)

    That they were able to reduce it down to just one C. Now it's just GC.

  • by vlad_petric ( 94134 ) on Thursday October 30, 2008 @02:38PM (#25573269) Homepage
    Granted, 4.3.2 is pretty cool, but AFAIK it's not revolutionary wrt earlier 4.* releases
    • by Anonymous Coward on Thursday October 30, 2008 @02:54PM (#25573475)

      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).

      • by sxeraverx ( 962068 ) on Thursday October 30, 2008 @04:05PM (#25574481)
        One of the things I personally am the most excited about is the ability to do function-level optimization in 4.4. Last year, I had a project that required me to have compiled code be as fast as possible, but you could only submit one source file and no Makefiles, which would be compiled with no arguments, optimizations, etc.. With this, I could throw the optimizations straight into the code, instead of having to compile with optimizations, taking the assembly, throwing that into a wrapper C file, and hoping the code was tested on the same architecture.
      • by Bert64 ( 520050 )

        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)

          by Anonymous Coward

          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

    • by Anonymous Coward on Thursday October 30, 2008 @02:54PM (#25573479)

      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)

    by Anonymous Coward on Thursday October 30, 2008 @02:39PM (#25573281)

    I've been using it for a year and a half now.

  • Wow...scary (Score:2, Insightful)

    by Anonymous Coward

    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.

  • I read that as CCG at first... It sounded pretty good too.
  • by Anonymous Coward

    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...

  • I've been stuck on gcc 3.4.3 for a few years now. Fortran 95 here I come!!

    • Re:FINALLY (Score:4, Funny)

      by pablomme ( 1270790 ) on Thursday October 30, 2008 @04:49PM (#25575115)

      Are you implying that you're using Fortran 77?

      That's just... gross!

      • Re: (Score:2, Funny)

        by kwabbles ( 259554 )

        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)

          by pablomme ( 1270790 )

          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... :)

          • Allright dammit, you got me. Who the hell uses PURE and ELEMENTAL anyways?

            • 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.

              • by Silpheed ( 80595 )

                "Fortran 77 is the reason why people laugh at Fortran."

                Get off my lawn you lazy kids.

              • by coats ( 1068 )
                Actually, the reason they laugh is that they're still stuck in 1960's-vintage FORTRAN IV, and aren't willing even to acknowledge the progress made for FORTRAN-77.

                As an aside, going from "FORTRAN" to "Fortran" was a Fortran-90 change...

                • 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.

      • Are you saying that in 4.x ifortran .gt. 77 ??????
  • by jonwil ( 467024 ) on Thursday October 30, 2008 @08:05PM (#25577563)

    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)

  • How the hell did this make front page news like 3 and a half years too late? Firehose fail.
  • by mma ( 1151825 ) on Friday October 31, 2008 @06:50AM (#25581319)
    There is still one major target language missing: XML. Hopefully gccxml will one day be merged into the main source tree.
  • 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

    • 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

"Protozoa are small, and bacteria are small, but viruses are smaller than the both put together."

Working...