Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
when i create large arrays, error comes : "Segmentation Failure" Posted by muaz_farooq on 5 May 2005 at 12:32 PM
hi everybody,

when i create large arrays like : array[1..2000,1..2000] of integer
it gives error at runtime saying :

'Segmentation Failure'

one importatnt thing, i am working with VECTOR PASCAL. A new compiler of pascal which uses simd instruction set to achieve parallelism. I am sure that all of you guys will be aware of that.

anyways wat should i do.....waiting eagerly for replys...


Report
Re: when i create large arrays, error comes : "Segmentation Failure" Posted by Gaashius on 7 May 2005 at 6:53 AM
: hi everybody,
:
: when i create large arrays like : array[1..2000,1..2000] of integer
: it gives error at runtime saying :
:
: 'Segmentation Failure'
:
: one importatnt thing, i am working with VECTOR PASCAL. A new compiler of pascal which uses simd instruction set to achieve parallelism. I am sure that all of you guys will be aware of that.
:
: anyways wat should i do.....waiting eagerly for replys...
:
:
:
Maybe your array is too large. Do you have any reference book or help file about this VECTOR PASCAL? Maybe they write something about array sizes.

****************
Any questions? Just ask!

GAASHIUS


Report
Re: when i create large arrays, error comes : "Segmentation Failure" Posted by Manning on 8 May 2005 at 6:22 PM
: hi everybody,
:
: when i create large arrays like : array[1..2000,1..2000] of integer
: it gives error at runtime saying :
:
: 'Segmentation Failure'
:
: one importatnt thing, i am working with VECTOR PASCAL. A new compiler of pascal which uses simd instruction set to achieve parallelism. I am sure that all of you guys will be aware of that.
:
: anyways wat should i do.....waiting eagerly for replys...

Assuming a 32bit integer, that's a 16mb array you're trying to load on the stack, which is probably just too big. You'll probably have to create the array at run-time by allocating memory for it on the heap.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.