Results 1 to 6 of 6

Thread: compiling and binaries

  1. #1
    Join Date
    Jan 2005
    Location
    East Coast Canada
    Beans
    23

    compiling and binaries

    Hope this is the right forum for this post...

    my question is rather simple:

    what advantages and dissadvantages are there to compiling source versus binaries? Does it effect speed, usability and stability? does it result in smaller disk use?

    the reason I ask is I have been toying with setting up a source based distro on my second hd as a trial

  2. #2
    Join Date
    Mar 2005
    Beans
    21

    Re: compiling and binaries

    Quote Originally Posted by rdking
    Hope this is the right forum for this post...

    my question is rather simple:

    what advantages and dissadvantages are there to compiling source versus binaries? Does it effect speed, usability and stability? does it result in smaller disk use?

    the reason I ask is I have been toying with setting up a source based distro on my second hd as a trial
    If there is a need for speed you need to compile for your specific computer. Just compiling is not the solution's then you make what you can download. You need to set the correct build parameters.

  3. #3
    Join Date
    Oct 2004
    Location
    37.8N 97.2W
    Beans
    2,191
    Distro
    Dapper Drake Testing/

    Re: compiling and binaries

    You'll always spend more time compiling a program than any realized speed gains. The only real "advantage" is that you get to play MOTU with your box. I've run Gentoo for a long while and it is quite fun to put on my mad scientist hat and run wild in the laboratory.
    Everybody can be great because everybody can serve.
    You only need a heart of grace. A soul generated by love.

    - Martin Luther King, Jr.

    Help A Child Today

  4. #4
    Join Date
    Oct 2004
    Location
    Netherlands
    Beans
    2,983
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: compiling and binaries

    I moved this thread

    rdking please look for where to post before actually posting something

  5. #5
    Join Date
    Oct 2004
    Location
    Kingston, On
    Beans
    Hidden!

    Re: compiling and binaries

    Quote Originally Posted by rdking
    Hope this is the right forum for this post...

    my question is rather simple:

    what advantages and dissadvantages are there to compiling source versus binaries? Does it effect speed, usability and stability? does it result in smaller disk use?

    the reason I ask is I have been toying with setting up a source based distro on my second hd as a trial

    It will take up much more disk space since you will end up with the unpacked source as well as the binaries.

    You need to compile from source when the application is not provided for you by the distribution.

    Any optimizations you can get by compiling it yourself are far from being significant.

    So, if you want an app that is not in Ubuntu, compile it from source. If you want an app than is packaged for Debian, but not in ubuntu install the deb-src (source package) from debian and compile it on your box.

    Compile the whole stack? I could not be bothered.

  6. #6
    Join Date
    Nov 2004
    Beans
    2,614

    Re: compiling and binaries

    Quote Originally Posted by lovebug356
    If there is a need for speed you need to compile for your specific computer.
    No, you don't.

    At most, you have to compile for particular ISA and all it's options. But given the same set of options, the compiler had better output the same code every time. If not, we have a term for that: broken.

    Compiling code is a nightmare, and a utter PITA. I do lots of configuration management for a living. It's some on large projects, most coders can't do or maintain correctly, as it's more about organization than anything (coders aren't always the most organized sort ).

    Believe me. It's not something you want to do unless you have to.

Bookmarks

Posting Permissions

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