[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Maximum value to assign to _stklen

Posted on 1997-08-08
2
Medium Priority
?
425 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:James Atkin
[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 150 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:James Atkin
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
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.

656 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