News for hackers. Stuff that matters.
Re:Use of Goto in Systems Code by jstanley on Tuesday February 05, 2013 @04:34PM (#5173370)
I accept both of those points. I was asking in the context of safety-critical systems. I see no advantages of goto over a function call.
Re:Use of Goto in Systems Code by primitur on Wednesday February 06, 2013 @03:46AM (#5175514)
A function call necessitates setting up the stack for the call, and returning from the call by popping values of the stack. To get 100% coverage, you'll have to test the call, test the broken call, test the stack being corrupted, and so on. This adds to the cyclomatic complexity of the TESTING required to certify that your software doesn't have/take any unknown paths during its lifetime while installed in highly hostile environments (heat, radiation, water, desert conditions, Antarctica, etc.)