Solved

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

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to setup iphone app subscription service 3 119
C simple state machine for client server handshake 4 264
UPD maximums on Red Hat 6 109
Need example 5 107
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

929 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

13 Experts available now in Live!

Get 1:1 Help Now