21-May-00 22:14 you wrote:
Russ Whitaker wrote:
hi here's the monthly :-) revised faq
COPYING.LIB GNU Library Public License
The precise name is "GNU Library General Public License".
Why not "GNU Lesser General Public License" BTW ?
http://www.gnu.org/copyleft/lesser.html
I'm accessing an `array[1..4000000] of byte' and I got an exception.
Per default, the maximum stack size of a djgpp application is 256K. If you need more, you have to adjust it with the stubedit program, i.e.:
stubedit your_app.exe minstack=5000K
Another way is to add the following code to your program to define a minimum stack size (here: 2 MB). This value will be honored even if a user sets a lower value by using stubedit, so this method might be a little safer.
(Note: The syntax given here is valid for GPC releases of May 2000 and newer.)
{$ifdef DJGPP} var MinStackSize : Cardinal = $200000; asmname '_stklen'; {$endif}
Hmm. If here we said about DJGPP's stack handling perhaps setrlimit(2) and ulimit from bash(1) should be mentioned as well ? In SVr4 and BSD 4.3-based systems (including Linux) you can raise stack size limit via setrlimit(2) in run-time or from bash's command line BEFORE starting program with ulimit -s ... Of course in Linux you'll need not `array[1..4000000] of byte' but `array[1..10000000] of byte' to get exception (with default 8MiB limit) but anyway ...