https://github.com/d-michail/jheaps-capi
https://github.com/d-michail/jheaps-capi
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/d-michail/jheaps-capi
- Owner: d-michail
- License: apache-2.0
- Created: 2020-06-15T10:36:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-21T11:17:45.000Z (about 4 years ago)
- Last Synced: 2024-12-26T15:22:27.954Z (4 months ago)
- Language: Java
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/d-michail/jheaps-capi/actions/workflows/push.yml)
[](https://opensource.org/licenses/Apache-2.0)
[](https://www.java.com/)# JHeaps Native Library
This library provides a native C api to the JHeaps library. Since the JHeaps library is written in Java, we
use [GraalVM](https://www.graalvm.org/) in order to build a shared library._Important! This is alpha software and the interface many change!_
## Build
We use cmake to build the native library.
```
mkdir build/
cd build/
cmake ..
make
```
## InstallationUse `make install` to install the library. After a successful installation, you should see the following files:
```
jheaps_capi.h
jheaps_capi_types.h
jheaps_capi_dynamic.h
graal_isolate.h
graal_isolate_dynamic.h
```and the shared library `libjheaps_capi.so`.
## Requirements
The build will succeed only if you have the following piece of software installed:
* GraalVM 20.0 with Java 11 support
* Native Image component from GraalVM
* GNU C compiler or clang
* glibc-devel, zlib-devel (header files for the C library and zlib)
* Maven build tool
* CMakeFor Windows you will need Microsoft Visual C++ (MSVC) 2017 15.5.5 or later. Build the
system using the proper
[Developer Command Prompt](https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019#developer_command_prompt_shortcuts)
for your version of [Visual Studio](https://visualstudio.microsoft.com/vs/). This means
`x64 Native Tools Command Prompt`. Use Visual Studio 2017 or later.## License
This library may be used under the terms of the
* Apache License Version 2.0
https://www.apache.org/licenses/LICENSE-2.0Please note that this library is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.Please refer to the license for details.
SPDX-License-Identifier: Apache-2.0
## Author
(C) Copyright 2020, by Dimitrios Michail
Enjoy!