[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop
Subject: Re: stack problem
From: Nikolay Melekhin <nikolay_melehin () mtu-net ! ru>
Date: 2005-07-11 11:20:25
Message-ID: 42D255F9.7020504 () mtu-net ! ru
[Download RAW message or body]
Hi!
> I use some extremely large arrays like : int myArray[myconst] and
> myconst can be eg. 1000000. My total amount of space required for an
> instance of the class is about 26,6 MB. I am reusing code which I have
> not written myself and I am not supposed to change to much.
>
My first advise:
Don't copy through stack such big structure use references and pointers.
Second advise:
If your project is automake based then open Project -> Project Settings ->
Configure settings. Select your build configuration and on C tab in field
"Compiler settings (CFLAGS)" and on C++ tab in field "Compiler settings
(CXXFLAGS)" enter -mmax-stack-frame=10000000
For custom makefile based project use CFLAGS and CXXFLAGS variable in your makefile.
--
Best regards, Nikolay Melekhin
nikolay_melehin@mtu-net.ru
-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic