Solved

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

Posted on 1998-01-15
1
472 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
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…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now