Advice needed - gcc and exceptions (Paulo J. Matos)
Jim White
mathimagics at yahoo.co.uk
Sun Jun 18 17:41:12 CEST 2006
> Date: Sat, 17 Jun 2006 22:33:52 +0100
> From: "Paulo J. Matos" <pocmatos at gmail.com>
> Subject: Re: Advice needed - gcc and exceptions
> To: "Jim White" <mathimagics at yahoo.co.uk>
> Cc: gmp-discuss at swox.com
>
> Check the -fexceptions flag on gcc. It'll enable C
> to use exceptions.
No, I don't think it does that! What it does (as far
as I can tell, that is) is to ensure that the compiled
code will fit into a runtime environment in which
other modules have exception handling.
The idea being, if a C++ routine with an exception
catcher calls a C routine, and the C routine triggers
an exception (eg via a bum intrinsic function call,
like cint), then the C++ routine will catch that
exception properly.
The answer to my original question is really "NO".
There is simply no exception-handling model in
standard C (if I'd been their tutor, those Berkeley
boys who came up with C would have failed on that
account alone! ;-)
But thanks, anyway! I've learned something from
asking the question in any case...
Jim White
ANU, Canberra
More information about the gmp-discuss
mailing list