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

Support for native image #4

Closed
phronmophobic opened this issue Nov 15, 2023 · 2 comments
Closed

Support for native image #4

phronmophobic opened this issue Nov 15, 2023 · 2 comments

Comments

@phronmophobic
Copy link
Owner

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
Copy link
Owner Author

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

@phronmophobic
Copy link
Owner Author

Fixed in v1.4!

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

1 participant