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

Implement primitiveCalloutToFFI (primitive 120) and SqueakFFIPrims #43

Open
fniephaus opened this issue Feb 21, 2019 · 1 comment
Open
Labels

Comments

@fniephaus
Copy link
Member

Only few SqueakFFIPrims are implemented so far. We probably want to use Truffle NFI for this.

@fniephaus
Copy link
Member Author

Looks like we can use -Djava.library.path=... to add lib/ as a library path for shared libraries: https://bugs.openjdk.java.net/browse/JDK-8213772
So there's not need to use absolute paths for libraries within the code.

fniephaus added a commit that referenced this issue May 26, 2020
- Implement primitive 120, primitiveCalloutWithArgs, and primitiveLoadSymbolFromModule
- Let TruffleSqueak depend on `nfi`
- Introduce `de.hpi.swa.trufflesqueak.ffi.native` project with `SqueakFFIPrims.c`
- Turn `TRUFFLESQUEAK_GRAALVM_SUPPORT` into `TRUFFLESQUEAK_HOME`

Co-authored-by: Teresa Lasarow <28645522+teresalasarow@users.noreply.github.com>
Co-authored-by: Fabio Niephaus <code@fniephaus.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants