My code is organized as
//LARGEHEADER.H
class LARGE {
...
}
//SMALLER.H
#include "LARGEHEADER.H"
class SMALL: protected LARGE {
...
}
//and in each of A.C, B.C, C.C ...
#include "SMALLER.H"
void f() {
...
}
Now LARGEHEADER.H is in the order of 10 MB. While trying to compile this setup it seems to take up a lot of time and memory and my final executable is close to 90 MB. Please point out to me what I am doing wrong. How can I speed up my compilation with this setup.