There's something to be said about doing it manually by using inline assembly to fiddle with your stack. That's not portable, but the problem sounds either misinterpreted or nonportable to begin...
Type: Posts; User: Voodoo Doll
There's something to be said about doing it manually by using inline assembly to fiddle with your stack. That's not portable, but the problem sounds either misinterpreted or nonportable to begin...
The only way aside from doing it manually would be something like the nonstandard alloca function. It dynamically allocates memory but stores it in the current stack frame instead of on the heap....
You can use a stronger goto in the form of setjmp and longjmp, but that's ugly and awkward. A better option is to throw an exception. Both of those will safely unwind the function call stack and take...
Nope, it's almost always about the same speed since any high level loop construction becomes the equivalent of a goto loop when translated to machine code. Sometimes a goto is faster if you know what...