clong icon indicating copy to clipboard operation
clong copied to clipboard

Support for native image

Open phronmophobic opened this issue 2 years ago • 1 comments

An incomplete list of changes required to support native image:

  • com.phronemophobic.clong.gen.jna generates the code needed for functions, but also loads insn.core to create structure classes. insn.core must only be loaded when compiling.
  • Structure/newInstance causes classes to be loaded at build time that shouldn't be. Need a work around.
  • Figure out options for loading NativeLibrary that support both static and shared?

phronmophobic avatar Nov 15 '23 22:11 phronmophobic

Coercion inside generated functions also does class generation and relies on gen.jna namespace code.

phronmophobic avatar Nov 16 '23 00:11 phronmophobic

Fixed in v1.4!

phronmophobic avatar Jul 11 '24 17:07 phronmophobic