Re: Is Java useful for writing (C/C++) compiler

nr@labrador.eecs.harvard.edu (Norman Ramsey)
25 Apr 2000 02:23:31 -0400

          From comp.compilers

Related articles
[3 earlier articles]
Re: Is Java useful for writing (C/C++) compiler pmb@dina.kvl.dk (Peter Bertelsen) (2000-04-17)
Re: Is Java useful for writing (C/C++) compiler gram@ull.mjolner.dk (Flemming Gram Christensen) (2000-04-20)
Re: Is Java useful for writing (C/C++) compiler iank@bearcave.com (2000-04-20)
Re: Is Java useful for writing (C/C++) compiler jandk@easynet.co.uk (Jonathan Barker) (2000-04-20)
Re: Is Java useful for writing (C/C++) compiler dale@cs.rmit.edu.au (dale) (2000-04-21)
Re: Is Java useful for writing (C/C++) compiler dvdeug@x8b4e53cd.dhcp.okstate.edu (2000-04-21)
Re: Is Java useful for writing (C/C++) compiler nr@labrador.eecs.harvard.edu (2000-04-25)
Re: Is Java useful for writing (C/C++) compiler jandk@easynet.co.uk (Jonathan Barker) (2000-04-25)
Re: Is Java useful for writing (C/C++) compiler bobduff@world.std.com (Robert A Duff) (2000-04-25)
Re: Is Java useful for writing (C/C++) compiler guerby@acm.org (Laurent Guerby) (2000-04-26)
Re: Is Java useful for writing (C/C++) compiler dale@cs.rmit.edu.au (dale) (2000-04-27)
| List of all articles for this month |
From: nr@labrador.eecs.harvard.edu (Norman Ramsey)
Newsgroups: comp.compilers
Date: 25 Apr 2000 02:23:31 -0400
Organization: Harvard University
References: 00-04-125 00-04-128 00-04-134 00-04-141
Keywords: Java, C

Jonathan Barker <jandk@easynet.co.uk> wrote:
>Exceptions have to be implemented somehow, don't they? The Java
>language specification tells us the syntax and semantics of
>exceptions, but it doesn't tell us how that translates into native
>object code.
>
>[describes one implementation]


Actually it is quite possible to implement exceptions such that they
are raised in constant time, just by setting the program counter and
stack pointer. See
http://www.eecs.harvard.edu/nr/pubs/c--exn-abstract.html for some
information about how to do this. Also David Chase's two papers
(cited in the bibliography) from the Journal of C Language Translation
are excellent.
--
Norman Ramsey
http://www.eecs.harvard.edu/~nr


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.