Solved

Maximum value to assign to _stklen

Posted on 1997-08-08
2
414 Views
Last Modified: 2012-06-27
What is the maximum value you can assign to _stklen ?

I am currently assigning 48kb. Would there be a problem
in assigning 64k + ?

Thanks for your help,

James Atkin
0
Comment
Question by:jatkin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 total points
ID: 1253004
It sounds like you're programming in 16bits. If that's the case, then the size of your global data (initialized or not) + the size of your stack + (if you're doing Windows local heap) <= 64K.

So you can assign it up to approximately 60K (provided you are not compiling for 16-bit Windows and no global data). But you definitely cannot go over 64K. You'll get an error from the linker.

If you're using 32bits, then assigning _stklen does not do anything. You'll have to change the size of the stack using a module definition file.
0
 
LVL 4

Author Comment

by:jatkin
ID: 1253005
I am developing a 16-bit DOS application, with several MALLOC commands.

Providing I keep the varaible declarations < 64kb, do I need the _stklen declaration ?

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question