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.