Slashdot Mirror


Looking At Changes In the Newest GCC

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

10 of 54 comments (clear)

  1. Umm, gcc 4 was released 2 years ago by vlad_petric · · Score: 2, Informative

    Granted, 4.3.2 is pretty cool, but AFAIK it's not revolutionary wrt earlier 4.* releases

    --

    The Raven

    1. Re:Umm, gcc 4 was released 2 years ago by Anonymous Coward · · 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).

    2. Re:Umm, gcc 4 was released 2 years ago by sxeraverx · · Score: 4, Informative

      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.

    3. Re:Umm, gcc 4 was released 2 years ago by Anonymous Coward · · 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

  2. gcc 4 is "new"? by Anonymous Coward · · Score: 3, Informative

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

    1. Re:gcc 4 is "new"? by TheRaven64 · · Score: 4, Informative

      The article is about 4.x, and covers everything including the latest 4.3.x series. It's very light on details, however, so unless you know next to nothing about GCC you are unlikely to learn anything.

      --
      I am TheRaven on Soylent News
    2. Re:gcc 4 is "new"? by Anonymous Coward · · Score: 5, Informative

      Wouldn't it be more logical to start supporting C++ 98 first?

    3. Re:gcc 4 is "new"? by Anonymous Coward · · Score: 1, Informative

      That deserves "sad but true" rather than "funny"... VC supports C89, but nothing more recent.

    4. Re:gcc 4 is "new"? by XDirtypunkX · · Score: 2, Informative

      As it has done since VC2003 thanks to the hard work of Herb Sutter? DUN DUN DUN.

  3. Re:FINALLY by pablomme · · Score: 2, 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... :)

    --
    The state you are in while your HEAD is detached... - wait, what?