C stack frame sizes

John Collins jmc at ist.UUCP
Fri Dec 21 07:17:17 AEST 1984


>The I/O buffers were declared as local variables in the main function....
>thus were on the stack.  Given the constraints imposed by the PDP-11
>MMU, this actually resulted in a net gain in useful data memory as
>compared to allocating buffers dynamically using sbrk.
>Mike Lutz

Yes - but that isn't the same as what I said. Fine if it is the main routine
but if you DON'T want a big stack, but early on you call (from main) a
routine which does, you eat up memory forever.
-- 
John Collins calling courtesy of ist
	Please reply to ...!mcvax!ist!inset!jmc
Phone: +44 727 57267
Snail: 47 Cedarwood Drive, St Albans, Herts, AL4 0DN, England



More information about the Comp.lang.c mailing list