[net.micro.pc] Finding the End of Memory & Adjusting the Stack Pointer using Lattice

ijk@houxt.UUCP (10/12/84)

I'm interested in adjusting my stack pointer so that I actually occupy
the minimum required space in my program on the PC using the Lattice
Compiler.  The only way I can see of doing this is to create a dummy
data variable that I insure gets loaded last, then taking its address
and loading its address + size of reserved stack area into the SP
in the startup code (C.ASM).  Am I missing something??? Are there
any compiler options that I can invoke to do this for me???
WHAT ELSE WILL LIKELY BREAK whe I try this??  I'm not requesting
any malloc type space, so I hope I'm safe

Thanx for any advice,
Ihor Kinal
houxt!ijk