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

Is it possible to embed Avian in C/C++ ? #553

Open
metacritical opened this issue Jan 15, 2018 · 1 comment
Open

Is it possible to embed Avian in C/C++ ? #553

metacritical opened this issue Jan 15, 2018 · 1 comment

Comments

@metacritical
Copy link

Hi i writing a small test kernel for fun and the idea was to write write a small C++ entry from assembly that embeds the Avian JVM when the kernel is in 32 bit mode. From there on develop the entire experimental OS on Java or Compile to JVM Byte code languages like Scala/Clojure etc. So really what i would like to know is how do i embed the thing in a C/C++ kernel.

@dicej
Copy link
Member

dicej commented Jan 15, 2018

Hi. In theory, yes, you could do that. However, Avian relies on an OS to provide certain functionality such as memory management, signal handling, threading, filesystem access, networking, etc.. And in order to make e.g. Scala or Clojure work, you'll need to use the OpenJDK class library, which has a lot more OS dependencies.

Take a look at the files in https://github.com/ReadyTalk/avian/tree/master/include/avian/system to see what the Avian VM needs from the OS.

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