[fpc-pascal]sig seg using fpc under freebsd - 10 line program enclosed
Jonas
jonas at zeus.rug.ac.be
Wed Apr 18 17:47:37 CEST 2001
On Wednesday, April 18, 2001, at 06:50 AM, Simon Lai wrote:
> I am evaluating fpc as an alternative to C for
> a project which uses lots of large arrays, under
> FreeBSD. The attached program however causes
> a segmentation violation on entry to bomb.
The following program also sigsegv's under Linux:
***
void t()
{
double test[16777216];
test[0] = 0.0;
}
void main()
{
t();
}
***
I think you are simply not allowed to use such a huge amount of stack space. Try using a dynamic structure instead.
Jonas
More information about the fpc-pascal
mailing list