Talk:List of Java bytecode instructions
This article is rated List-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||
|
This was originally in the java bytecode article, but got deleted there. Since there was some support to keep the list, and since there are similar listings for x86, it seems appropriate to have this article. This was basically copied from an older revision of the before mentioned article.
On 4 August 2021, it was proposed that this article be moved from Java bytecode instruction listings to List of Java bytecode instructions. The result of the discussion was moved. |
Updates
editI just noticed this article and have made some changes to it to make it feel more consistent with other related Java Platform-articles. There is now a short introduction (as requested) and the template that is used by other Java-articles has been added to the bottom of the page. I may also suggest moving this article to another name like "List of Java bytecode instructions". It feels more propriate somehow.
Similarly, I have added a List of CIL instructions.
Sortable Table
editI converted it into a sortable table to make it possible to see the instructions sorted by instruction code and by number of extra bytes. It works but is not perfect and I didn't find out how to get the following problems solved even though I tried a few things mentioned in Help:Sorting:
- The hex numbers should always be sorted as ASCII not numerical. Currently one needs to press the sort button 3 times to get a reasonable sorting of the hexadecimal values.
- I added the number of extra bytes at the beginning of all text in this row so that sorting makes sense. But I think it would be better if 3: were treated as less than 3/5: and 4: less than 4+:
Apart from that I'm not sure if the stack before/after column should better be split in two seperate columns that are independently sortable? --X4u (talk) 20:54, 18 May 2011 (UTC)
Hello world's bytecode
editWhat does the bytecode for a hello-world app look like? 68.173.113.106 (talk) 23:34, 5 February 2012 (UTC)
- You can write small java application and use the java disassembler, javap (this page also has some examples of bytecode).
JVM bytecode updates
editAre there any updates to bytecode in Java 1 .. Java 8 ? `a5b (talk) 03:28, 26 April 2013 (UTC)
- Most changes of the past affected the class file format rather than the byte code instructions. IIRC, the first change came with Java 5 that
ldc
andldc_w
may loadClass
constants from the pool. With Java 7,ldc
andldc_w
may loadMethodType
andMethodHandle
constants as well, and theinvokedynamic
instruction was added whilejsr
,jsr_w
, andret
were removed. 77.12.173.11 (talk) 15:55, 16 April 2014 (UTC)
Java Card Bytecodes
editI have found the subset of Java Card instructions BUT I haven't confirmed what bytecodes $FE & $FF do, nor have I been able to ensure the same bytecodes in Java are used in Javacard. While the int data type isn't an required datatype, the int bytecodes are used for all logical & arithmetic functions. If you 'mod' this page, the instructions have CRs after then so it's a neat list.
aaload aastore aconst_null aload anewarry areturn arraylength astore athrow baload bastore bipush checkcast dup dup_x1 dup_x2 dup2 dub2_x1 dup2_x1 getfield getstatic goto if_acmpeq if_acmpne if_icmpeq if_icmpge if_icmple if_icm_pne ifeq ifge ifgt ifle iflt ifne ifnotnull ifnull iinc iload instanceof invokedinterface invokedspecial invokedstatic invokedvirtual ior irem ireturn ishl ishr istore isub iushr ixor jsr iconst_0 iconst_1 ldc ldc_w iload lookupswitch new newarray nop pop pop2 putfield putstatic ret saload sastore sipush swap tableswitch wide — Preceding unsigned comment added by 81.99.74.135 (talk) 14:46, 5 August 2017 (UTC)
On the "inline citation" issue
edit> This article includes a list of references, related reading or external links, but its sources remain unclear because it lacks inline citations. (June 2020)
I think that we should do away with this. It's got the JVM spec at the bottom. Perhaps it can be updated to point directly to the page which talks about the instructions rather than just the table of contents? But I think it's silly to complain about a lack of inline citations on an article where nearly all of the content is just a massive table - do you want me to put an inline citation for each opcode pointing to that opcode's section in chapter 6.5 of the Java spec? I'll do that, but it seems excessive, when that page has a list of them on the side you can click on. SirNapkin1334 (talk) 04:26, 19 March 2021 (UTC)
Requested move 4 August 2021
edit- The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this discussion.
The result of the move request was: moved. (closed by non-admin page mover) Lennart97 (talk) 11:09, 17 August 2021 (UTC)
Java bytecode instruction listings → List of Java bytecode instructions – Standard title format for list articles. Rublov (talk) 12:10, 4 August 2021 (UTC)
- Support per nominator. JIP | Talk 17:07, 4 August 2021 (UTC)