This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A user question (was: Re: Faster compilation speed)


Marco Morandini wrote:
> wrong code....

bleah!
Here is the right code
(pippo (dummy in italian) <-> dummy)


Marco


Version 1
-------------------
class A{
private:
    double c;
public:
    virtual ~A();
};
void dummy(const A&a);
int main(void) {
    A a;
    dummy(a);
           .
           .
    //repeat this line N times
           .
           .
    dummy(a);
    return 0;
}

-------------------

Version 2
-------------------
void dummy(const double&a);
int main(void) {
    double a;
    dummy(a);
           .
           .
    //repeat this line N times
           .
           .
    dummy(a);
    return 0;
}

-------------------





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]