Become a fan of Slashdot on Facebook


Forgot your password?
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×
GNU is Not Unix Programming Open Source Software Technology

GCC Turns 25 192 192

eldavojohn writes "With the release of GCC 4.7.0, the venerable and stalwart constant that is the GNU Compiler Collection turns twenty five. More ISO standards and architectures supported with this release and surely more memories to come from the compiler that seems to have always been."
This discussion has been archived. No new comments can be posted.

GCC Turns 25

Comments Filter:
  • Re:lolcompilers (Score:5, Insightful)

    by multiben (1916126) on Thursday March 22, 2012 @06:16PM (#39445653)
    You must be a high quality programmer.
  • Thanks gcc! (Score:5, Insightful)

    by stox (131684) on Thursday March 22, 2012 @06:24PM (#39445747) Homepage

    You youngin' have no idea of what kind of crap for compilers we had to put up with until gcc.

    25 years of compilation with gcc!

  • by ichthus (72442) on Thursday March 22, 2012 @06:44PM (#39445907) Homepage
    Are you serious? You're a firmware engineer and you can't figure out what compiler to use. Further, you're developing for ARM and you think that Microsoft or Intel may be the best option?
    NXP recommends GCC (Code Red IDE which is Eclipse-based), and ST recommends Keil, for their ARM micros. Just FYI.
    Good luck on your school project.
  • by Anonymous Coward on Thursday March 22, 2012 @06:46PM (#39445927)
    Intel and Microsoft compilers are generally considered better than GCC for IA32 and x86_64, but that's mostly because those are the only platforms those compilers need to target (Microsoft care about ARM now, but I don't know how well MSVCC compares to GCC for any given ARM target). Architecture specific compilers will always be able to take crazy shortcuts in the optimiser and generator. GCC has to jump through all sorts of hoops between the front end and the back end, because the front end can't make any assumptions about the back end.
  • by Tetsujin (103070) on Thursday March 22, 2012 @07:00PM (#39446037) Homepage Journal

    Well, one thing that's happened to me an awful lot is that GCC seems to generate smaller *and* faster code when using -Os rather than -O3. That it'd be smaller was no surprise to me, but the speed-up was. (For reference, I'm using an IA32 2 GHz CPU with 1.5 GB of RAM.)

    Fewer cache misses, maybe?

  • Re:Thanks gcc! (Score:5, Insightful)

    by msclrhd (1211086) on Thursday March 22, 2012 @07:31PM (#39446263)

    Having competing products (browsers, compilers, operating systems, ...) help keep those products from stagnating and help push all involved products to improving. It also helps prevent people being reliant on specific compiler/browser/office suite behaviour. GCC is not a "crap compiler", just like Firefox is not a "crap browser". That is not saying that GCC is issue free, nor that it has improved in part as a result from LLVM/Clang. Likewise, LLVM/Clang is not the panacea of compilers.

    Competition on a level playing field is a good thing.

  • Re:Thanks gcc! (Score:2, Insightful)

    by samkass (174571) on Thursday March 22, 2012 @08:08PM (#39446539) Homepage Journal

    The guy in that second link doesn't sound very pissed off. And clang definitely has WAY better error messages and analysis/refactoring available to it. As for the codegen, it beat GCC by a wide margin when it first came around, but GCC seems to have surpassed it again in more recent versions.

    But the key for any commercial entity is that clang beats the pants off any GPLv2-licensed compiler, and GPLv3-licensed code is pretty much irrelevant to most applications. So GCC is doing a great job for the insulated linux world, and hopefully clang can catch back up to offer the rest of us a better choice.

  • Re:Thanks gcc! (Score:5, Insightful)

    by KiloByte (825081) on Thursday March 22, 2012 @08:36PM (#39446763)

    How exactly GPLv3 on the _compiler_ stops you from doing anything? It has only one effect: ensures the toolchain stays usable for everyone.

  • Thank you gnu (Score:5, Insightful)

    by Ada_Rules (260218) on Thursday March 22, 2012 @08:37PM (#39446765) Homepage Journal
    I remember the first time I built gcc in college on an decstation (probably around 1990) I was thrilled to have a free compiler with source code. It almost seemed like magic. Several years later when the GNAT project started and promised to bring Ada programming to GCC I was even happier but I never really expected it would turn into the high quality Ada compiler that we have today. While HURD never really worked out, the GCC project alone (never mind the vast quantity of other software covered by the GPL) has been transformational and I think many of the younger generation take the existence of this stuff for granted.

    Now, get off my lawn.

  • by Anonymous Coward on Thursday March 22, 2012 @10:59PM (#39447483)

    It is has been intentional been feature ridden....


    I think it's a non-proofread approximation of saying "Javascript has lots of language features, many of which are redundant". The implication being that the language is bigger than it needs to be and so is more complex and difficult to read than it should be.

    All ugly languages have this problem, the lack of orthogonality results in massive numbers of anti-patterns (see Perl as the classic default example, C++ is another).

  • Re:Thanks gcc! (Score:3, Insightful)

    by Anonymous Coward on Friday March 23, 2012 @03:44AM (#39448497)

    Richard Stallman would point out how he has been talking about the dangers of secure boot and software patents for years, and how Theo just now figured out that those things might be a problem. Then we would watch two grown men stare and gleer at each other.

  • by Anonymous Coward on Friday March 23, 2012 @06:57AM (#39449121)

    Oh, come on. I despise Microsoft as much, or more, than anyone here. But how does freely selling something for an agreed-on price of $75K make SCP a victim, no matter what Microsoft may have done with their purchase subsequently?

    If I sell my house for $200K, and the buyer subsequently resells it some time later for $300K, can I be a victim too? Is no one an adult any more, capable of making decisions and accepting the consequences, for better or worse? Let's grow up, shall we?

  • Re:Thanks gcc! (Score:4, Insightful)

    by drinkypoo (153816) <> on Friday March 23, 2012 @07:17AM (#39449217) Homepage Journal

    Imagine that your favorite text editor uses Clang's own parser to generate its syntax highlighting and check for errors as you type. With the GPL, your editor would likely have to be released under the GPL.

    If your editor is modular and you include a plug-in for this function, then only the plug-in needs to be GPL'd. Your program doesn't, because it doesn't depend on it to function, it only adds additional functionality.

The star of riches is shining upon you.