[fpc-pascal]sig seg using fpc under freebsd - 10 line program enclosed

Simon Lai sjlai at yahoo.com
Wed Apr 18 06:50:44 CEST 2001


Hi,

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.

-----------------------
Program t1;

const p=16777215;

procedure bomb;
  var d:array[0..p] of qword;
  begin
    d[0]:=0;
  end;

begin
  bomb;
end.
--------------
Array d is quite large but the physical
memory alone is sufficient to hold it on
this system (256Mb).  If p<=8388389 the
test program runs fine. 

Is there some compiler switch I need to turn
on?

regs

simon

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




More information about the fpc-pascal mailing list