Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.os.msdos.programmer FAQ part 2/5
Section - - How can I change the stack size in Borland's C compilers?

( Part1 - Part2 - Part3 - Part4 - Part5 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Cities ]


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?
See reader questions & answers on this topic! - Help others by sharing your knowledge
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.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




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 March 27 2014 @ 02:11 PM