Well I don’t know if it is just me.
If I enable -O3 or -Os (I’m using gcc 3.x on windows), I always run into out of memory problem. Even if it finishes, it takes ages.
Unless I use -O0, in which case it’s compiled in a blink.
I know my pc is a bit old (1G RAM, running windows 7), but I’m still curious about why that file requires so much memory to compile.
Probably because it’s got an absurd 10,000 line switch statement. I’m working on extracting that into manageable functions over time, but, well… 10,000 lines.
Be glad that we’ve trimmed down itypedef.cpp, as well (by moving most things out into JSON files). I recall one of the Windows devs saying that compiles were taking ~35 minutes for him, or ~15 if he disabled optimizations on that file.