Results 1 to 3 of 3

Thread: Compiling Source Code

  1. #1
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    323
    Thanks
    174
    Thanked 51 Times in 37 Posts

    Compiling Source Code

    Hey everyone,

    Lately I've been learning and studying source code compilation. I know that some here are very skilled at this and with their skills they were able to make the fastest or smallest binaries.

    I am not a programmer at all, whatsoever, so what I've been doing is trying and combining different flags/switches with my compilers to see what is best.

    I've been playing around with TANGELO 1.0 and UDA 0.301 because they are simple and easy to compile. My compilers are as follows:

    GCC (MinGW and Cygwin)
    ICC 11.1
    MSVC (multiple versions)

    For TANGELO, with GCC I seem to get the fastest binary but the binary filesize is enormous. With ICC, it is considerably slower but half the size of GCC's binary. For UDA though, dwing's binary is 32KB while my faster ICC compile is 64KB at the smallest.

    So my question is, for all of you that are very skilled with source code compiling, are there any tricks, specific switches, etc. taht are helpful for data compression programs specifically?

    Any help would be great! I know that some don't want to share their secrets, but I'm hoping others would be willing to share so we can all benefit.

    Thanks!
    Last edited by comp1; 1st June 2015 at 15:45.

  2. #2
    Programmer Bulat Ziganshin's Avatar
    Join Date
    Mar 2007
    Location
    Uzbekistan
    Posts
    4,497
    Thanks
    733
    Thanked 659 Times in 354 Posts
    msvc6/gcc3 should give the smallest executables since they are using msvc6 runtime included in most windows versions

  3. The Following User Says Thank You to Bulat Ziganshin For This Useful Post:

    comp1 (5th June 2015)

  4. #3
    Member just a worm's Avatar
    Join Date
    Aug 2013
    Location
    planet "earth"
    Posts
    96
    Thanks
    29
    Thanked 6 Times in 5 Posts
    my experience is that GCC creates files 45 KB+ if you use the default settings

    according to a heapsort, quicksort and mergesort test the compiler from Intel shouldn't be so slow in general: http://www.azillionmonkeys.com/qed/sort.html

    Here is a speed benchmark of different compilers. It also gives the command line options used: http://www.azillionmonkeys.com/qed/CritLoops.html
    Last edited by just a worm; 10th June 2015 at 22:55.

Similar Threads

  1. Compiling a new corpus
    By nemequ in forum Data Compression
    Replies: 30
    Last Post: 1st April 2015, 13:45
  2. Compiling ZPAQ on Windows with MinGW
    By fcorbelli in forum Data Compression
    Replies: 6
    Last Post: 20th January 2014, 03:29
  3. Compiling ZPAQ on Mac OSX 10.7.2 (Lion) gcc4.2.1 - problems!
    By z3cko in forum The Off-Topic Lounge
    Replies: 7
    Last Post: 21st December 2011, 03:28
  4. Compiling PPMd var J1 on Ubuntu
    By Piotr Tarsa in forum The Off-Topic Lounge
    Replies: 2
    Last Post: 18th December 2011, 20:17
  5. can someone help me compiling paq by myself?
    By noshutdown in forum Forum Archive
    Replies: 4
    Last Post: 4th December 2007, 10:49

Posting Permissions

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