Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Compilation Times, Binary Sizes For GCC 4.2 To GCC 4.8

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    15,429

    Default Compilation Times, Binary Sizes For GCC 4.2 To GCC 4.8

    Phoronix: Compilation Times, Binary Sizes For GCC 4.2 To GCC 4.8

    Compiler benchmarks at Phoronix commonly look at the performance of resulting binaries while less of a focus is the compilation time and binary sizes. However, a developer has carried out GCC benchmarks of the compilation times and binary sizes in different scenarios for GCC releases going from GCC 4.2 to the upcoming GCC 4.8...

    http://www.phoronix.com/vr.php?view=MTMyOTY

  2. #2
    Join Date
    Mar 2012
    Posts
    7

    Default Compilation speed is almost irrelevant.

    Only thing that matters is the end result.
    In form of accuracy, speed and code size.
    I would gladly have a 10 times slower compiler if it was guaranteed to produce 10% faster code on absolute average.
    I don't get why compilation speed is such a big deal when binary speed is the final result users will see?
    So who cares if the kernel takes 4 minutes or 6 minutes and 10 seconds to compile?
    For all of you how do care about speed. Go play with TCC instead. It's an excellent compiler/assembler/linker.

  3. #3
    Join Date
    Dec 2007
    Location
    United Kingdom
    Posts
    54

    Default

    People who compile things themselves care about how long it takes. If I want to create a patch and rebuild something, it's a lot more convenient if it only takes 15 minutes rather than 2 and a half hours to compile.

  4. #4
    Join Date
    Apr 2010
    Posts
    797

    Default

    Quote Originally Posted by ejs1920 View Post
    People who compile things themselves care about how long it takes. If I want to create a patch and rebuild something, it's a lot more convenient if it only takes 15 minutes rather than 2 and a half hours to compile.
    Right. I don't care if release builds take twice as long to produce faster-executing code. But as a developer, efficiency of the compiler is a big factor in my own productivity - I'm not going to get much done if every little change means I might as well go and grab a coffee...

  5. #5
    Join Date
    Jun 2009
    Posts
    2,933

    Default

    Quote Originally Posted by milkylainen View Post
    So who cares if the kernel takes 4 minutes or 6 minutes and 10 seconds to compile?
    Kernel developers, obviously.

  6. #6
    Join Date
    Sep 2008
    Location
    Vilnius, Lithuania
    Posts
    2,636

    Default

    Quote Originally Posted by pingufunkybeat View Post
    Kernel developers, obviously.
    And Gentoo users.

  7. #7

    Default

    Quote Originally Posted by GreatEmerald View Post
    And Gentoo users.
    Lets not forget Gentoo developers.

  8. #8
    Join Date
    Aug 2012
    Location
    Pennsylvania, United States
    Posts
    1,921

    Default

    Quote Originally Posted by milkylainen View Post
    Only thing that matters is the end result.
    In form of accuracy, speed and code size.
    I would gladly have a 10 times slower compiler if it was guaranteed to produce 10% faster code on absolute average.
    I don't get why compilation speed is such a big deal when binary speed is the final result users will see?
    So who cares if the kernel takes 4 minutes or 6 minutes and 10 seconds to compile?
    For all of you how do care about speed. Go play with TCC instead. It's an excellent compiler/assembler/linker.
    You are obviously NOT a developer. If I'm coding and I make 1 change and I re-compile to test it, I'd rather not have to think to myself "Well....I'm gonna be here for a while." For release builds code-speed may be more important, but for test builds? A 10-second kernel build? i would be beyond happy. Itd be like a free hardware upgrade to me haha

  9. #9
    Join Date
    Jun 2011
    Posts
    1,092

    Default

    Quote Originally Posted by Ericg View Post
    You are obviously NOT a developer. If I'm coding and I make 1 change and I re-compile to test it, I'd rather not have to think to myself "Well....I'm gonna be here for a while." For release builds code-speed may be more important, but for test builds? A 10-second kernel build? i would be beyond happy. Itd be like a free hardware upgrade to me haha
    Well yeah but then you don't get to do this:

    :P

    but seriously... milklainen compile time is wildly important for developers because the more time we're waiting for our code to compile the less time we're spending actually working on or testing code.

  10. #10
    Join Date
    Nov 2007
    Posts
    1,353

    Default

    I've got a 955BE and compile time is like nothing. At most even on huge packages like the kernel or gtk or firefox it only takes a few minutes. And most other packages take less than a minute or even just a few seconds. I can't imagine that compile time is still much of a problem.

    My emerge -e world is over 700 packages and it only takes about an hour and a half.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •