memory problem
Bassoukos Tassos
abas at aix.meng.auth.gr
Mon Oct 16 10:29:23 EEST 2000
On Thu, 12 Oct 2000, George Andreadakis wrote:
> Gia sas!
>
> Exo ayto to programa:
>
>
>
> #define LIM 128000000*4
>
> main()
> {
> int i;
> static int mypntr[LIM];
> for ( i=1 ; i < (LIM-10); i++) {
> mypntr[i]=100;
> }
> }
>
>
>
> exo sto board 2Gb memory.
>
> Otan bgazo to 'static' doyleyei mia xara alios kanei Segmentation fault.
>
> Me to static me afinei mono 128M int aray.
>
> Mporei na me forisei kapios giati?
>
> --
> linux-greek-users mailing list -- http://lists.hellug.gr
Me to static mpainei sto data segment, xwris to static mpainei sto
stack[0].
Na sou proteinw na xrhsimopoihseis deiktes?
PS: 8a htan kalo na aneferes epe3ergasth&dist.
man -k limit; man ulimit
Tassos
[0] Ean 8ymamai kala, yparxei kapoio orio sto stack, alla nomizw pws einai
1G kai oxi 512M ....
--
Bassoukos Tassos +30 31 996011 / +30 93 7109954 IT Generalist
"Bill Gates is just a monocle and a Persian Cat away from being one of
the bad guys in a James Bond movie." - Dennis Miller
--
linux-greek-users mailing list -- http://lists.hellug.gr
More information about the Linux-greek-users
mailing list