[Contents] [TitleIndex] [WordIndex

GIWS in Java

To call Java from C we currently use a simple C/C++ code generator the emit the needed JNI (Java Native Interface) stubs called GIWS. This tool take an XML description file that contains classes and methods description to limit the exposed interface to well defined entry points. The generated code is also tunable to let the user choose the buffer passing implementation (per copies, raw arrays, etc..

The goal of this project is to implement an "annotation processor" that will output the same C/C++ code as before but without XML files (and re-using Java APIs).

Current implementation

The generator is currently implemented in Python and has some provided unit tests. It has mainly an Java Objects representation (Classes, Methods, Fields), some type management utilities for natives types and an C / JNI printer that output the code.

2022-09-08 09:26