[Top][All Lists]

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

slow compile

From: address@hidden
Subject: slow compile
Date: Fri, 02 Nov 2007 14:10:48 -0700
User-agent: G2/1.0

I have been seeing a consistent slowness in g++ compilation for a
small file like the following , The uptime is near ( load Is near to
0 ) . I have put the time output for the same,

The file looks like the following
using namespace std;

int main()
        int data[5] = {6,7,8,6,5};
        vector<int> v(5,6);
        deque<int> d(data, data+5);
        deque<int>::iterator p;
        cout << "\n Deque values" <<endl;
        for (p= d.begin(); p!= d.end(); ++p)
        cout <<*p<<'\t';
        cout <<endl;
        d.insert(d.begin(), v.begin(), v.end());
        for (p= d.begin() ; p != d.end(); ++p)
        cout<<*p <<'\t';
        cout <<endl;


a.outvgamd261> /usr/bin/time g++
0.84user 0.17system 0:05.14elapsed 19%CPU (0avgtext+0avgdata
0inputs+0outputs (1968major+20640minor)pagefaults 0swaps

reply via email to

[Prev in Thread] Current Thread [Next in Thread]