https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111821
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note smaller #s decrease the memory usage and compiles faster but still uses a lot of memory. Going from 0x1000000 to 0x2000000: expand : 0.60 (100%) 0.06 (100%) 0.70 ( 97%) 271M ( 99%) expand : 1.99 ( 98%) 0.22 (100%) 2.20 ( 96%) 543M (100%) As you can see double the memory usage.