project-panama

“cstdarg file not found” when running jextract on the C binding for a Rust project

痴心易碎 提交于 2020-12-13 03:29:07
问题 I'm trying to get a simple integer addition function written in Rust working with Java's Project Panama. Having generated the bindings using cbindgen crate, I get the following error when running jextract: jextract -t org.adder -L . -l adder-java --record-library-path -I /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdarg bindings.h -o adder-java.jar java.lang.RuntimeException: /Users/ash/Code/adder/bindings.h:1:10: fatal error: 'cstdarg' file not found I've looked at the examples

“cstdarg file not found” when running jextract on the C binding for a Rust project

旧巷老猫 提交于 2020-12-13 03:25:54
问题 I'm trying to get a simple integer addition function written in Rust working with Java's Project Panama. Having generated the bindings using cbindgen crate, I get the following error when running jextract: jextract -t org.adder -L . -l adder-java --record-library-path -I /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdarg bindings.h -o adder-java.jar java.lang.RuntimeException: /Users/ash/Code/adder/bindings.h:1:10: fatal error: 'cstdarg' file not found I've looked at the examples

Can't use jdk.incubator.vector classes in BigInteger

[亡魂溺海] 提交于 2020-05-15 07:44:42
问题 I'm trying to use the Java Vector API from the Panama project to add some SIMD code to the java.math.BigInteger class. I cloned the Panama repo and built a JDK: hg clone http://hg.openjdk.java.net/panama/dev/ cd dev/ hg checkout vectorIntrinsics hg branch vectorIntrinsics bash configure make images I was able to compile and run a simple little program that uses the vector API: import static jdk.incubator.vector.Vector.Shape.S_256_BIT; import jdk.incubator.vector.IntVector; import static jdk

Can't use jdk.incubator.vector classes in BigInteger

隐身守侯 提交于 2020-05-15 07:44:25
问题 I'm trying to use the Java Vector API from the Panama project to add some SIMD code to the java.math.BigInteger class. I cloned the Panama repo and built a JDK: hg clone http://hg.openjdk.java.net/panama/dev/ cd dev/ hg checkout vectorIntrinsics hg branch vectorIntrinsics bash configure make images I was able to compile and run a simple little program that uses the vector API: import static jdk.incubator.vector.Vector.Shape.S_256_BIT; import jdk.incubator.vector.IntVector; import static jdk