Related articles |
---|
[5 earlier articles] |
Re: exceptions & dataflow dlmoore@ix.netcom.com (David L Moore) (1998-02-09) |
Re: exceptions & dataflow sergey@solyanik.com (Sergey Solyanik) (1998-02-10) |
Re: exceptions & dataflow jason@cygnus.com (Jason Merrill) (1998-02-10) |
Re: exceptions & dataflow mcdirmid@beaver.cs.washington.edu (1998-02-10) |
Re: exceptions & dataflow jeremy@softway.com.au (1998-02-10) |
Re: exceptions & dataflow jason@cygnus.com (Jason Merrill) (1998-02-12) |
Re: exceptions & dataflow fjh@hydra.cs.mu.oz.au (Fergus Henderson) (1998-02-12) |
Re: exceptions & dataflow chase@world.std.com (David Chase) (1998-02-12) |
Re: exceptions & dataflow amitb@sasi.com (Amit Bhatnagar) (1998-02-12) |
Re: exceptions & dataflow dlmoore@ix.netcom.com (David L Moore) (1998-02-14) |
Re: exceptions & dataflow sergey@solyanik.com (Sergey Solyanik) (1998-02-14) |
Re: exceptions & dataflow leichter@smarts.com (Jerry Leichter) (1998-02-14) |
From: | Fergus Henderson <fjh@hydra.cs.mu.oz.au> |
Newsgroups: | comp.compilers |
Date: | 12 Feb 1998 13:33:56 -0500 |
Organization: | Compilers Central |
References: | 98-02-025 98-02-027 98-02-045 |
Keywords: | optimize, analysis |
Sergey Solyanik (sergey@solyanik.com) wrote:
>: In Java, hardware exceptions can ony happen in very controlled manner
>: (e. g. to test for null). If your language contains pointers, things
>: are much worse and you'd have to break basic block with essentially
>: any pointer dereference when you cannot prove that location exists.
mcdirmid@beaver.cs.washington.edu (Sean McDirmid) writes:
> I would be very interested to see how it was done by Sun or other
> compilers with exception support (modula 2, C++, etc..).
In C++, dereferencing a null or dangling pointer results in undefined
behaviour. Typically on Unix systems the program will get a signal,
not an exception. I suppose the user might try to throw an exception
from the signal handler, but that would be undefined behaviour too.
--
Fergus Henderson <fjh@cs.mu.oz.au>
WWW: <http://www.cs.mu.oz.au/~fjh>
PGP: finger fjh@128.250.37.3
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.