asmble icon indicating copy to clipboard operation
asmble copied to clipboard

Compile WebAssembly to JVM and other WASM tools

Results 22 asmble issues
Sort by recently updated
recently updated
newest added

Hello, I'm trying to compile wasm file which contains Swift app inside and getting `Class too large` error. ``` org.objectweb.asm.ClassTooLargeException: Class too large: MyClass at org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:550) at asmble.compile.jvm.AsmToBinary.fromClassNode(AsmToBinary.kt:30) at asmble.compile.jvm.AsmToBinary.fromClassNode$default(AsmToBinary.kt:21)...

`asmble.compile.jvm.SyntheticFuncBuilder.buildIndirectBootstrap` calls `ClassReader(RuntimeHelpers::class.java.name)`. Per [the documentation](https://asm.ow2.io/javadoc/org/objectweb/asm/ClassReader.html#%3Cinit%3E(java.lang.String)): > The ClassFile structure is retrieved with the current class loader's ClassLoader.getSystemResourceAsStream(java.lang.String) According to [the documentation of that method in turn](https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html#getSystemResourceAsStream-java.lang.String-): > This method...

I get the following error compiling a file: ``` [ERROR] Error in command 'compile': Unrecognized instruction: global.get asmble.io.IoErr$UnrecognizedInstruction: Unrecognized instruction: global.get at asmble.io.SExprToAst.toInstrs(SExprToAst.kt:381) at asmble.io.SExprToAst.toInstrs$default(SExprToAst.kt:370) at asmble.io.SExprToAst.toFunc(SExprToAst.kt:251) at asmble.io.SExprToAst.toModule(SExprToAst.kt:589) at...

It's common practice to store gradle wrapper inside git repository. It make initial setup much easier for new contributors. For example, we store gradle wrapper in our repository in [intellij-rust](https://github.com/intellij-rust/intellij-rust).

I've got `clang` to compile this to WASM: ```c // Filename: add.c int add(int a, int b) { return a + b; } ``` When trying to compile to JVM...

Hi @cretz hope you don't mind I'm creating an issue just to let you know I've created a Gradle Plugin to compile WASM to JVM class files based on your...

I download 0.4.0 release ,and extract to my computer . when I run : MacBook-Pro:asmble wudream$ ./asmble/bin/asmble compile main.wasm hello Exception in thread "main" kotlin.reflect.jvm.internal.KotlinReflectionInternalError: Function 'limit' (JVM signature: limit(I)Ljava/nio/Buffer;)...

Bump dependencies, update `ByteBuffer` APIs to Java 9's, suppress warning properly This issue fixes #28, but may drop support for JRE 8. I'm using JRE 11.

I have stumbled with NPD during compilation of this [example](https://yadi.sk/d/B5czrMnCg3Thkg). It seems that this exception caused by generation of stack locals after `GOTO` operation: the field `locals` sets to null...

gradle :examples:rust-simple:run succeed, while gradle run --args="compile ./examples/rust-simple/target/wasm32-unknown-unknown/release/rust_simple.wasm RustSimple" failed, why? [ERROR] Error in command 'compile': Invalid section ID of 19 asmble.io.IoErr$InvalidSectionId: Invalid section ID of 19 at asmble.io.BinaryToAst.toModule(BinaryToAst.kt:184) at...