Solved

Creating a low mem TSR in Watcom C/C++ 11.0

Posted on 1998-01-15
1
511 Views
Last Modified: 2008-02-01
I'm trying to create a TSR i Watcom C/C++ 11.0, but no matter what I do, I the TSR i create uses AT LEAST 15 Kb of conventional memory. The problem is that I have to include everything from the _PSP to the end of the stack (Including the C functions I use, like sound() ), to avoid crashing. The ideal would be to include a single function in the resident part of the program, but then I'll loose the stack (And thereby my variables).
How do I create a TSR which uses 2-6 KB of conventional instead of 16 Kb ? I've created several 2-6 KB TSR's using Pascal (A very long time ago) so I figure the same thing is possible in Watcom C.
0
Comment
Question by:Morten from Eliten
1 Comment
 
LVL 10

Accepted Solution

by:
rbr earned 30 total points
ID: 1257004
If your problem is the stack avoid variables using the satck. Declare all variables as static and no stack will be used for them.
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

Suggested Solutions

Title # Comments Views Activity
C language IDE – Compilers installation 14 78
convert char array to number in c 5 91
valid enum? 6 75
Digital Output does not have continuity to ground? 3 108
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…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
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 how to create, access, and change arrays in the C programming language.

733 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