[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] condor compile makes very big binaries...



Hi

I made a simple cpp program  to test my condor stuff : 

#include <time.h>
#include <iostream>

int main (int argc, char** argv)
{
    int u=0;
    int compteur=0;

    for (int i=0; i<1e23; i ++)
        for (int j=0; j<1e23; j++)
        {
            compteur++;
            time_t t1;
            (void) time(&t1);

            u++;
            u=u+3;
            u=u/2;
            if (compteur==10000000)
            {
                std::cout << t1 << std::endl;
                compteur=0;
            }
        }
    return 0;
}

If I compile it, I have a 14 Kb binary, if I condor_compile it, I have a 12 Mb binary !!!

What's the reason ? (I supppose it's a question of static linking or such, but a real explanation would help me...)
Is there a way to make it lighter ?

Thx in advance
Nicolas

-----------------------------------------------
CNRS - UPR 9080 : Laboratoire de Biochimie Theorique
Institut de Biologie Physico-Chimique
13 rue Pierre et Marie Curie
75005 PARIS - FRANCE

Tel : +33 158 41 51 70
Fax : +33 158 41 50 26
------------------------------------------------