rexdex / recompiler

Xbox360 -> Windows executable converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiler is out of heap space in pass 2

0x8080 opened this issue · comments

VS usually spits out this error when compiling large projects, trying to find a fix but currently no success.

I was having this problem with Sonic Adventure 2. It appears that the problem was caused by the recompilation using the 32-bit version of MSBuild. After redirecting to the 64-bit version, it compiled after an hour and maxing out at 10GB of RAM used. I'm not sure if it was related to using that version of MSBuild, but the game would not launch following the recompilation. This solution was implemented in the following fork:
https://github.com/HaydnTrigg/recompiler

The specific changes were made in "codeGeneratorMSVC.cpp" and can be found in this commit:
HaydnTrigg@59e8137