recompiler icon indicating copy to clipboard operation
recompiler copied to clipboard

Compiler is out of heap space in pass 2

Open 0x8080 opened this issue 8 years ago • 1 comments

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

0x8080 avatar Dec 26 '17 19:12 0x8080

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: https://github.com/HaydnTrigg/recompiler/commit/59e8137f65fee137eaf92045a7f7fdbc9fade5d1

TBirdSoars avatar Jul 03 '20 02:07 TBirdSoars