This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AIX gcc compiler memory management
- From: Ana Yuseepi <anayuseepi at yahoo dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc at gnu dot org
- Date: Wed, 17 Apr 2002 18:13:41 -0700 (PDT)
- Subject: Re: AIX gcc compiler memory management
(1) Hello David,
I tried to follow your advice,
# gcc myfile.cpp -Wl,-bmaxdata:0x30000000 -o myexe -w
-lpthread
#gcc -v
Reading specs from
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/specs
gcc version 2.95.2 19991024(release)
executing my program, it gives me:
# ./myexe
Trace/BPT trap (core dump)
using gcc or g++ to compile, gaves me the same result.
does anyone have any good advice?
thanks a lot,
-Ana
--- David Edelsohn <dje@watson.ibm.com> wrote:
> >>>>> 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
>
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/