If my functions only use a few variables and never return, then I never need anything but stack memory, and overflow is simply garbage collection. Is this possible in C?
Technically, a stack overflow will trigger an exception which can be handled, but this is not possible in ANSI C, however most C compilers(like MSVC) provide extensions for exception handling.