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
Solved

Maximum value to assign to _stklen

Posted on 1997-08-08
2
401 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
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

838 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