This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Question about POSIX libgcj signals / exception handling
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 11 Mar 2006 14:26:41 -0600
- Subject: Re: Question about POSIX libgcj signals / exception handling
- Reply-to: gnustuff at thisiscool dot com
Thanks, David.
-- Mohan
3/11/2006 11:39:34 AM, David Daney <ddaney@avtrex.com> wrote:
>Mohan Embar wrote:
>>
>>>One thing that you need to remember if you are using native code is to
>>>have GCC generate exception data for all your non-java code so that
>>>faults in native code can be gracefully handled.
>>
>>
>> Can you explain what you mean by this? Doesn't this happen automatically
>> in C++?
>>
>
>By default g++ does have exception handling enabled. You can turn it
>off with -fno-exception (sp?).
>
>If you are integrating legacy C or assembly code, you have to arrange it
>so that the exception tables are generated. Use -fexception
>-fnon-call-exceptions I think for gcc. For assembly things get much
>more complicated (look at the libffi source for examples).
>
>David Daney
>
>