The compiler currently has a major memory strategy of allocate-and-never-free. Partly because of this, it often requires very large amounts of RAM to compile things.
The compiler's not ready to just flip the switch and enable garbage collection, so this will take some doing.
1. Add a makefile flag to build with GC enabled. This will make testing easier.
2. Build a lot of code (eg every version of every dub project) with this compiler.
3. Track down related bugs.
4. Fix them.