Return to BSD News archive
Newsgroups: comp.os.386bsd.questions
Path: sserve!sparcserve.cs.adfa.oz.au!wkt
From: wkt@sparcserve.cs.adfa.oz.au (Warren Toomey)
Subject: Gnu C limitations?
Message-ID: <1994Jun6.043502.14072@sserve.cc.adfa.oz.au>
Sender: news@sserve.cc.adfa.oz.au
Organization: Australian Defence Force Academy
Date: Mon, 6 Jun 1994 04:35:02 GMT
A friend just sent me a program which doesn't work under the Gnu C from
FreeBSD 1.x.
int main()
{
double t[256][256];
t[23][23]=1.23456;
printf("%lf\n",t[23][23]);
}
It works when the t array is global, not local. Is there a limit on array
sizes? Alternatively, is FreeBSD treating the access to t[23][23] as invalid
because it's more than one page away from the current top of stack?
Just curious!
Thanks,
Warren wkt@cs.adfa.oz.au
--
`` ... nor do I regularly post multi-kilobyte screeds about driver software I
can't release because aliens haven't used the radio receivers in my head to
give me permission yet.'' -- John F. Woods