Skip to content

Update to new Krakatau assembly syntax #1

Description

@Storyyeller

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions