From: | A Pietu Pohjalainen <pohjalai@cc.helsinki.fi> |
Newsgroups: | comp.compilers |
Date: | 26 Jan 2006 14:15:11 -0500 |
Organization: | University of Helsinki |
References: | 06-01-037 06-01-055 |
Keywords: | Java |
Posted-Date: | 26 Jan 2006 14:15:11 EST |
paolo.bonzini@gmail.com wrote:
>> In the statement:
>> z = y = x;
>> Which of the following outputs would be more "correct"?
>>
>> * There is a read from x, which leads to a write to y.
>> * There is a write to y.
>> * There is a read from y, which leads to a write to z.
>> * There is a write to z.
> This one, according to the JLS.
JLS = Java Language Specification ?
Java compiler does to bytecode level:
read x;
duplicate;
write y;
write z;
There is no read from y.
br,
Pietu Pohjalainen
Return to the
comp.compilers page.
Search the
comp.compilers archives again.