Re: [fpc-pascal] How do FreePascal implement hardware exceptions handling?

2012-12-17 Thread Andrzej Borucki
2012/12/16 Sven Barth > Why are you doing this? install_exception_handlers is called during > process entry of Win32/Win64 programs already, so calling this twice can be > considered a bad(TM) idea. > > Regards, > Maybe hence problems. I want to create own compiler for simplified language with ex

Re: [fpc-pascal] How do FreePascal implement hardware exceptions handling?

2012-12-16 Thread Sven Barth
On 15.12.2012 18:40, Andrzej Borucki wrote: I analyze FreePascal exceptions handling. Instead use of try-excpt-finally statement I rather use fpc_LongJmp,fpc_PushExceptAddr etc. It works fine for software exceptions (fpc_RaiseException) but not handle hardware exceptions. FPC relies on the hard

[fpc-pascal] How do FreePascal implement hardware exceptions handling?

2012-12-16 Thread Andrzej Borucki
I analyze FreePascal exceptions handling. Instead use of try-excpt-finally statement I rather use fpc_LongJmp,fpc_PushExceptAddr etc. It works fine for software exceptions (fpc_RaiseException) but not handle hardware exceptions. I use install_exception_handlers at start program. This call SetUnhand