Improving Compilation Time of C/C++ Projects | Interrupt

Is it possible to compile 1gb file with gcc with system ram 4g in a day