search for: execption0

Displaying 3 results from an estimated 3 matches for "execption0".

Did you mean: execption
2008 May 10
0
[LLVMdev] How to handle divide-by-zero exception?
...VM and compiler ignorant, so take the following for what it is worth. What about logically breaking a (complex) SEH method into two logical methods, as per this pseudo-code as an example: ----------------------- foo(parameter-list) { leading-statements; try { try-statements; } catch(Execption0 ex0) { catch-0-statements; } . catch(ExceptionN exN) { catch-n-statements; } finally { final-statemements } tail-statements; } foo$n(parameter-list) { leading-statements. PushTheExceptionHandler(foo$x); try-statements PopTheExceptionHandler(); final-...
2008 May 10
1
[LLVMdev] How to handle divide-by-zero exception?
Hi, > What about logically breaking a (complex) SEH method into two logical > methods, as per this pseudo-code as an example: > > ----------------------- > > foo(parameter-list) > { > leading-statements; > > try { > try-statements; > } > catch(Execption0 ex0) { > catch-0-statements; > } > . > catch(ExceptionN exN) { > catch-n-statements; > } > finally { > final-statemements > } > > tail-statements; > } LLVM is completely "flat" - it has no local blocks at all. So a big part...
2008 May 09
4
[LLVMdev] How to handle divide-by-zero exception?
On May 8, 2008, at 9:35 PM, Nick Lewycky wrote: > Talin wrote: >> Currently it states in the language manual that the results of >> division >> by zero are undefined. However, I'm curious as to how you would >> normally >> handle either divide by zero or other "hardware" exceptions (null >> pointer dereference and so on) and turn them into