Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to new Krakatau assembly syntax #1

Open
Storyyeller opened this issue Jun 19, 2016 · 1 comment
Open

Update to new Krakatau assembly syntax #1

Storyyeller opened this issue Jun 19, 2016 · 1 comment

Comments

@Storyyeller
Copy link

I noticed that your tool is outputting legacy Jasmin/Krakatau syntax.

I would recommend updating to the new Krakatau syntax introduced last December, so that it is more reliable and can take advantage of the other features in Krakatau.

The most notable changes are that instead of doing

.limit stack 94
.limit locals 2
; code here

you should do

.code stack 94 locals 2
; code here
.end code

Also, for field and method instructions, you should explicitly tag the type of constant pool reference (required in order to support Java 8 interface methods). For example, instead of

     invokespecial java/lang/Object/<init>()V

you should do

     invokespecial Method java/lang/Object <init> ()V
@skochinsky
Copy link
Owner

Thanks, I'll update it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants