Stack frames
Jon Mauney
mauney at ncsu.UUCP
Sat Feb 15 04:42:48 AEST 1986
> In c one can declare variables within any {} block.
> ...
> Am I paying a penalty for these one-statement clauses
Block structure is static with respect to the enclosing procedure
and can be taken care of by the compiler, with no run-time
stack manipulations required. Any compiler that tries to be
efficient should do this.
Any compiler that has a run-time penalty for use of {} without
local declarations should be shot.
--
Jon Mauney, mcnc!ncsu!mauney
North Carolina State University
More information about the Comp.lang.c
mailing list