Re: Re: Re: Re: Re: Re: Re: Resulting class performance

Jeremy Cowgar <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
On 5/7/2010 4:49 PM, Chris Dennis wrote:
> If that were true then the verifier would have blown chunks wouldn't 
> it?  It does appear like the count is being maintained in two places 
> though: both in slot 0 and on the stack, hence the iinc and iadd?

No, there are two incrementors going on here. One is the loop counter 
which is using iinc. The other is the iadd which is incrementing my "i" 
variable that will fall out the back end of the loop to be used. The 
equiv Java is:

int i = 0;
int loopCounter = 0;

while (loopCounter < 300000000) {
   i = i + 1;
   loopCounter++;
}

i.e. loopCounter is nothing more than to know when to exit the "times" 
loop. i is a user variable that will be used later on in the program and 
has nothing to do with the loop, other than being incremented in the 
body of the loop.

Jeremy
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.