Java Virtual machine-virtual machine compiler

Source: Internet
Author: User

void Sspin () {  short  i;    for (i = 0; i <; i++) {      //  }
}

Method void Sspin ()
0 Iconst_0 int constant value 0 in-stack
1 Istore_1 The value of the stack-top int into the specified local variable
2 Goto 10
5 iload_1 the specified int type local variable into the stack
6 Iconst_1 int constant value 1 in-stack
7 Iadd stack top two int values are added, and the result is in the stack
8 I2S Stack Top int value strong to short value, and result in stack
9 Istore_1 The value of the stack-top int into the specified local variable
Iload_1 the specified int type local variable into the stack
Bipush 100 pushes a byte constant value to the top of the stack
IF_ICMPLT 5 compares stack top two int type numeric size, when the result is less than 0 o'clock jump
Return

Java Virtual machine-virtual machine compiler

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.