stack memory allocation

lee.usc-cse%rand-relay at sri-unix.UUCP lee.usc-cse%rand-relay at sri-unix.UUCP
Wed Jul 13 09:55:00 AEST 1983


Yes, the compiler does use the stack during expression evaluation, tho
if you do your "salloc" (which is provided is -lPW under the name 
amalloc) at statement level, there is no problem with the VAX or PDP/11
compilers.  However, you are asking for portability problems because
some C compilers make other assumptions about the stack pointer and may
in fact be unable to deal with runtime changes to the stack frame size.
I recommend against this under-the-compiler approach.  
						-- Lee



More information about the Comp.unix.wizards mailing list