qingwen.ye@gmail.com Posted November 6, 2013 Report Posted November 6, 2013 Hi All, Do you have any comments on the issue below? We have a very big SC_MODULE (auto generated), we split it into 28 cpp files. and the SC_CTOR has about 100K lines. We compile the design on a 32GB Linux server, and get out of memory error: cc1plus.exe: out of memory allocating 33554432 bytes make: *** [obj/ldpc_decoder_core_1.o] Error 1 thanks, Qingwen Quote
Philipp A Hartmann Posted November 6, 2013 Report Posted November 6, 2013 Well, your compiler runs out of memory. As it seems that your host may have enough memory, make sure that the user memory limits (ulimit -v -m) are not getting in your way.That said, 100k lines in a single function is quite a lot. We had similar problems with synthesized code at some point in the past and split the results in multiple functions instead. You might want to split your constructor here by creating a set of "init" functions that are called in sequence and put those functions in separate files as well. Greetings from Oldenburg, Philipp Quote
dakupoto Posted November 7, 2013 Report Posted November 7, 2013 Hi All, Do you have any comments on the issue below? We have a very big SC_MODULE (auto generated), we split it into 28 cpp files. and the SC_CTOR has about 100K lines. We compile the design on a 32GB Linux server, and get out of memory error: cc1plus.exe: out of memory allocating 33554432 bytes make: *** [obj/ldpc_decoder_core_1.o] Error 1 thanks, Qingwen I am curious, if as you say you are running on a 32 GB Linux server, your executable is named "cc1plus.exe:" ? Are you sure it is not a Windows machine ? Why the ".exe" ? Quote
qingwen.ye@gmail.com Posted November 7, 2013 Author Report Posted November 7, 2013 Hi, yes, you are right, it was on Win 7 Platform, which has 32GB memory. I am curious, if as you say you are running on a 32 GB Linux server, your executable is named "cc1plus.exe:" ? Are you sure it is not a Windows machine ? Why the ".exe" ? Quote
qingwen.ye@gmail.com Posted November 7, 2013 Author Report Posted November 7, 2013 Hi Philipp, Thanks for the suggestions, we will try to split the constructors. thanks Well, your compiler runs out of memory. As it seems that your host may have enough memory, make sure that the user memory limits (ulimit -v -m) are not getting in your way.That said, 100k lines in a single function is quite a lot. We had similar problems with synthesized code at some point in the past and split the results in multiple functions instead. You might want to split your constructor here by creating a set of "init" functions that are called in sequence and put those functions in separate files as well. Greetings from Oldenburg, Philipp Quote
Hans64 Posted November 7, 2013 Report Posted November 7, 2013 Hi, yes, you are right, it was on Win 7 Platform, which has 32GB memory. I would suggest you also try 64bits Linux as I assume you are using gcc under Mingw-w64 which is still considered somewhat unstable. Good luck, Hans www.ht-lab.com Quote
apfitch Posted November 7, 2013 Report Posted November 7, 2013 On Windows, you might find this useful: http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx especially the /LARGEADDRESSAWARE linker option, regards Alan Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.