[computer-go] Allocating lots of memory in C++?

Petri Pitkänen petri.t.pitkanen at gmail.com
Tue Aug 15 10:54:20 PDT 2006


Are you serious? Stack is not ment for that big things. Use new or 
malloc instead.

Petri Pitkänen
Peter Drake kirjoitti:
> Incidentally, this is stack allocation, not malloc or new.
>
> Peter Drake
> Assistant Professor of Computer Science
> Lewis & Clark College
> http://www.lclark.edu/~drake/ <http://www.lclark.edu/%7Edrake/>
>
>
>
>
> On Aug 15, 2006, at 10:47 AM, Peter Drake wrote:
>
>> I need to statically allocate an enormous block of memory (hundreds 
>> of megabytes) for Orego to store the search tree. When I allocate 
>> 1000 nodes, the program works fine. When I try to allocate 10000 
>> (around 15MB), I get SIGSEGV. How do I crank up the allowable memory?
>>
>> Peter Drake
>> Assistant Professor of Computer Science
>> Lewis & Clark College
>> http://www.lclark.edu/~drake/ <http://www.lclark.edu/%7Edrake/>
>>
>>
>>
>>
>> _______________________________________________
>> computer-go mailing list
>> computer-go at computer-go.org <mailto:computer-go at computer-go.org>
>> http://www.computer-go.org/mailman/listinfo/computer-go/
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> computer-go mailing list
> computer-go at computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/




More information about the computer-go mailing list