|
From: Neil D'S. <nx...@ya...> - 2011-09-06 11:59:10
|
I am no g++ or c++ expert, but Im working on a too itself which generates c++ code . The code I generated caused g++ to run out of memory. So I have faced this problem before. The method I am outlining is really basic, and simple and you may have tried it. I would compile my source code with g++ and then start the task manager, watching the memory usage it generated. I noticed that out of memory was caused because the file I was large and g++ memory usage crossed 2Gb. This wont solve your problem but can help you track what is happening with g++. For my particular file memory usage went slowly up, from 300mb to 600 mb etc peaking at 2+Gb after which the compiler gave an out of memory error. I am running 32bit windows7. |