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

No opcode found: 252 #46

Open
moritzfl opened this issue Jun 3, 2024 · 1 comment
Open

No opcode found: 252 #46

moritzfl opened this issue Jun 3, 2024 · 1 comment

Comments

@moritzfl
Copy link

moritzfl commented Jun 3, 2024

When trying to compile pdfcpu from webassembly to Java, I get the following error (I tried the release for Version 0.8.0):

asmble compile ./pdfcpu.wasm -format wasm PdfCpu -log info
[ERROR] Error in command 'compile': No opcode found: 252
java.lang.IllegalStateException: No opcode found: 252
        at asmble.ast.Node$InstrOp$Companion.op(Node.kt:456)
        at asmble.io.BinaryToAst.toInstr(BinaryToAst.kt:119)
        at asmble.io.BinaryToAst.toInstrs(BinaryToAst.kt:117)
        at asmble.io.BinaryToAst.toFunc(BinaryToAst.kt:78)
        at asmble.io.BinaryToAst.toModule(BinaryToAst.kt:209)
        at asmble.cli.Translate.inToAst(Translate.kt:70)
        at asmble.cli.Compile.run(Compile.kt:54)
        at asmble.cli.Compile.run(Compile.kt:10)
        at asmble.cli.Command.runWithArgs(Command.kt:17)
        at asmble.cli.MainKt.main(Main.kt:31)

According to https://pengowray.github.io/wasm-ops/ this means that FC extensions (Multibyte instructions beginning with 0xFC.) are used.

Is it feasible to add support for this in asmble?

@cretz
Copy link
Owner

cretz commented Jun 3, 2024

I don't work on this project much anymore, so it is unlikely I'll be adding support for any new opcodes anytime soon

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