[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

Top Document: comp.os.msdos.programmer FAQ part 2/5
Previous Document: - Why did my program bomb at run time with 'floating point formats not linked' or 'floating point not loaded'?
Next Document: - What's the format of an .OBJ file?


- How can I change the stack size in Borland's C compilers?


Date: 5 Feb 2002 22:03:03 -0400

 In Turbo C, Turbo C++, and Borland C++, you may not find "stack size" in
 the index but the global variable _stklen should be there. The manual
 will instruct you to put a statement like

   extern unsigned _stklen = 54321U;

 in your code, outside of any function. You must assign the value right
 in the extern statement; it won't work to assign a value at run time.
 The linker may give you a duplicate symbol warning, which you can
 ignore.

 If you are using the Borland PowerPack for DOS _stklen does not change
 the stack size. To change the stack size you must use STACKSIZE in your
 .DEF file. HEAPSIZE can be used to change the size of your program's
 heap.



Top Document: comp.os.msdos.programmer FAQ part 2/5
Previous Document: - Why did my program bomb at run time with 'floating point formats not linked' or 'floating point not loaded'?
Next Document: - What's the format of an .OBJ file?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page


[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
jeffrey@carlyle.org (Jeffrey Carlyle)

Last Update October 22 2009 @ 05:28 AM

Some parts © 2009 Advameg, Inc.