Re: Compiling pointer arithmetic targeting JVM

Joachim Durchholz <joachim.durchholz@web.de>
8 Dec 2003 00:19:29 -0500

          From comp.compilers

Related articles
Compiling pointer arithmetic targeting JVM napi@cs.indiana.edu (2003-11-21)
Re: Compiling pointer arithmetic targeting JVM gah@ugcs.caltech.edu (glen herrmannsfeldt) (2003-12-03)
Re: Compiling pointer arithmetic targeting JVM bonzini@gnu.org (2003-12-03)
Re: Compiling pointer arithmetic targeting JVM joachim.durchholz@web.de (Joachim Durchholz) (2003-12-08)
Re: Compiling pointer arithmetic targeting JVM fjh@cs.mu.oz.au (Fergus Henderson) (2003-12-13)
| List of all articles for this month |

From: Joachim Durchholz <joachim.durchholz@web.de>
Newsgroups: comp.compilers
Date: 8 Dec 2003 00:19:29 -0500
Organization: Oberberg Online Infosysteme
References: 03-11-098 03-12-014
Keywords: Java
Posted-Date: 08 Dec 2003 00:19:29 EST

glen herrmannsfeldt wrote:
> Equality comparisons check both the Object reference and offset,
> inequalities, at least in C, only need to compare the offset.


Incorrect.
Inequality checking needs to compare reference and offset just like
equality checking.
If you are in a context where you know that the references are the same,
then you can indeed drop the reference check, but this applies to
equality and inequality checking just the same.


[Agreeing with the rest.]


Regards,
Jo


Post a followup to this message

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