Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
87 views

I'm learning Dalvik bytecode now, it has many differences from the JVM bytecode. I want to know what optimizations it makes when converting java bytecode into dalvik bytecode. The optimization I'm ...
Neo's user avatar
  • 5,513
1 vote
0 answers
44 views

I want to generate invokedynamic bytecode using BCEL library. Using BCEL I want to generate a class file which calls a bootstrap method using invokedynamic opcode. I can see BCEL has INVOKEDYNAMIC ...
2 votes
0 answers
157 views

I am working on a java decompiler, and today I found a class file, here is the source code of the class file after decompiled loop { if ([ 119 ifeq] var_17_9.hasNext() /* target: 148 */) ...
Neo's user avatar
  • 5,513
1 vote
1 answer
120 views

I am working on a project where I need to write some header to the socket output stream right after the socket is connected. I want to intercept at low level such as java.net.Socket and its connect ...
1 vote
2 answers
158 views

I'm not a Scala dev by any means (rather Dart and Rust one), but I need to use some library written in Scala in my Java project. I can build the JAR from that library and use it as Maven dependency, ...
0 votes
0 answers
54 views

I am doing changes to re-develop Jacoco. Except for the existing boolean[], I want to add a new field (ArrayList) to store function name. I have already create the init method and add it to 'addMember'...
1 vote
3 answers
110 views

Here is a example public Integer add(Integer a) { a++; return a; } The corresponding bytecode instructions for this method are as follows 0 aload_1 1 astore_2 2 aload_1 3 invokevirtual #...
Fz1148's user avatar
  • 11
0 votes
0 answers
58 views

Is there any way for JVM-based languages to indicate to the interpreter that a branch is cold or unlikely etc.? Specifically I mean some kind of branch attribute like the Linux Kernel's unlikely() and ...
doliphin's user avatar
  • 1,044
0 votes
2 answers
154 views

I'm working on a personal project just for fun, a new programming languages (just because there are not enough). I m going to make it run on JVM but I need to store some metadata in the compiled file. ...
2 votes
1 answer
127 views

After carefully reading JVMS §4.10.2.2, I noticed the following paragraph: If corresponding values are both array reference types, then their dimensions are examined. If the array types have the same ...
2 votes
1 answer
81 views

For clarification, this is a question regarding the specification of the bytecode verifier, especially when dealing with bytecode that isn't generated by javac. Can the operand stack be modified in a ...
anon's user avatar
  • 697
1 vote
1 answer
87 views

I need to transform 654321 into 654321321, using only DUP2_X1, POP, DUP_X2, POP2. I have a really difficult time with the DUP. Can anyone help? I tried to go like this: 654321 DUP2_X1 654654321, then ...
0 votes
1 answer
79 views

I'm writing a security-boosted Java program that uses ASM tool to add some hooks into JRE classes. The hooks will then call my method to make some rule checks. But the odd thing is, the hooks in JRE ...
4 votes
0 answers
217 views

I have a Kotlin project that I want to compile to Java 1.8 bytecode so that it could also be used on Android as well. I use the com.vanniktech.maven.publish Gradle plugin to publish the library to ...
0 votes
1 answer
661 views

I am trying to generate Java bytecode using the Java Asm library (I am basically trying to create yet another JVM programming language) Here is the code I am compiling float f = 2f float f2 = new ...

15 30 50 per page
1
2 3 4 5
...
14

AltStyle によって変換されたページ (->オリジナル) /