This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: large array, ia64, "segmentation fault"
- From: hx w <ye_hx_w at yahoo dot com dot cn>
- To: gcc mail-list gcc <gcc at gcc dot gnu dot org>, ia64 <ia64-list at redhat dot com>, RHEL3 RHEL3 <Taroon-list at redhat dot com>
- Date: Sat, 27 Nov 2004 11:27:30 +0800 (CST)
- Subject: Re: large array, ia64, "segmentation fault"
Excuse me , In the REHL3 64bit platform ,how many can
i increase the stack size? I mean the maximum size.
Thanks!!
--- Peter Barada <peter@the-baradas.com> 的正文:
>
> >I compile a source , when N=100, everything is
> good;
> >but
> >when i modify N=1000, i got the info: segmentation
> >fault. i am using icc 8.1.
> >
> >My sys info:
> >RHEL3-64bit update 2.
> >2.4.21-4.EL kernel
> >4-way Iatnium2 .
> >8G RAM.
>
> You're trying to allocate a *large* amount of data
> off the stack int
> hte function main, probably enought to blow the
> limit on the stack
> size. Look up the manual page for 'ulimit' and use
> that command (with
> the appropriate parameters) to increase the stack
> size limit
>
> Your other choice is to move the definition oft
> A,B,C outside of main
> so they will be declared globally...
>
> --
> Peter Barada
> peter@the-baradas.com
>
_________________________________________________________
Do You Yahoo!?
注册世界一流品质的雅虎免费电邮
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/