This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AIX gcc compiler memory management
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Ana Yuseepi <anayuseepi at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 17 Apr 2002 10:47:02 -0400
- Subject: Re: AIX gcc compiler memory management
>>>>> Ana Yuseepi writes:
Ana> Has anyone have any comment on running gcc2.95.2 on
Ana> AIX4.3? because I have a large program, running file
Ana> on linux and solaris, I ported the program, made some
Ana> modifications to things that are OS specific, then
Ana> compile the program, i am now able to compile it. But
Ana> when i run it, it gives me core dumps. I tried
Ana> modifying some variables used as array, I tried
Ana> changing it to smaller sizes, it would run for a
Ana> while, but after executing again those functions using
Ana> the array buffers, it would core dump again. My
Ana> program involves pthreads.
Ana> Does anyone have any good suggestion on what I shall
Ana> do?
You do not mention the error causing the core dump, but you seem
to assume it is due to running out of memory. If it is a memory
limitation, make sure that the process limits (limit / ulimit) allow
suffient memory use and you also might try using the AIX
-Wl,-bmaxdata:0xNNNNNNNN linker option to instruct AIX to devote more
segments to data. E.g.,
g++ -Wl,-bmaxdata:0x30000000 ...
David