Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - cc1plus: Virtual memory exhausted: (1 Item)
   
cc1plus: Virtual memory exhausted  
I am trying to build a project in QNX Momentics IDE (4.6) using qcc in Linux. I fail to succeed the build process with 
the following error:

virtual memory exhausted: Cannot allocate memory
/opt/qnx641/host/linux/x86/usr/lib/gcc/i386-pc-nto-qnx6.4.0/4.3.3/cc1plus error 1

The project has a cpp file with more than 1.3 MLOC. This one is an autogenerated code from a large Matlab/SIMULINK 
simulation model so it is not easy to divide and conquer.

It is hard to understand if it is LOC limit of qcc compiler or due to a programming practice in the autogenerated code.

I would like to ask:

Is there any source file size limit for qcc?
What are the bad programming practices that cause this?
Any suggestions to fix virtual memory exhausted problem of cc1plus?