GlueGen Wiki: Difference between revisions
(→Build: github.com/mbien -> github.com/JogAmp) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
== Overview == | == Overview == | ||
GlueGen is a | GlueGen is a compiler for function and data-structure declarations, generating Java and JNI C code offline at compile time and allows using native libraries within your Java application. | ||
GlueGen | GlueGen also provides a comprehensive runtime library offering | ||
* Support for multi-arch and java code fat-jar deployment | |||
** Native library including JNI bundle handling and Jar file cache | |||
** Platform architecture information retrieval, ELF parser, alignment etc | |||
* Enhanced NIO buffer handling for pointer, arrays, DMA mapping etc | |||
* Network Uri RFC 2396, connection and resource handler to simplify asset loading | |||
* Bitstream, hash maps, ringbuffer, sha cumulator, reflection and threading utils | |||
* Abstract AudioFormat and AudioSink interfaces, concurrent locks .. and more | |||
GlueGen's compiler reads ANSI C header files and separate configuration files which provide control over many aspects of the glue code generation. GlueGen uses a complete ANSI C parser and an internal representation (IR) capable of representing all C types to represent the APIs for which it generates interfaces. It has the ability to perform significant transformations on the IR before glue code emission. | |||
GlueGen can produce native foreign function bindings to Java™ as well as map native data structures to be fully accessible from Java™ including potential calls to embedded function pointer. | |||
GlueGen supports registering Java™ callback methods to receive asynchronous and off-thread native toolkit events, where a generated native callback function dispatches the events to Java™. | |||
GlueGen also supports producing an OO-Style API mapping like JOGL's incremental OpenGL Profile API levels. | |||
== | GlueGen is capable to bind low-level APIs such as the Java™ Native Interface (JNI) and the AWT Native Interface (JAWT) back up to the Java programming language. | ||
Further, GlueGen supports generating JNI_OnLoad*(..) for dynamic and static libraries, also resolving off-thread JNIEnv* lookup. | |||
GlueGen utilizes JCPP, migrated C preprocessor written in Java™. | |||
GlueGen is used for the JogAmp projects [[JOAL Wiki|JOAL]], [[JOGL Wiki|JOGL]] and [[JOCL Wiki|JOCL]]. | |||
GlueGen is part of the JogAmp project. | |||
== Further Readings == | |||
* [{{SERVER}}/cgit/gluegen.git/about/ GlueGen Git Repo] | |||
* [{{SERVER}}/deployment/jogamp-next/javadoc/gluegen/javadoc/ GlueGen Java™ API-Doc] | |||
* [{{SERVER}}/gluegen/doc/GlueGen_Mapping.html GlueGen Native Data & Function Mapping] | |||
* [{{SERVER}}/gluegen/doc/manual/ GlueGen Manual] | |||
* [{{SERVER}}/gluegen/www/ GlueGen Project Page] | |||
* [{{SERVER}}/gluegen/doc/HowToBuild.html How To Build] |
Latest revision as of 19:33, 10 July 2023
Overview
GlueGen is a compiler for function and data-structure declarations, generating Java and JNI C code offline at compile time and allows using native libraries within your Java application.
GlueGen also provides a comprehensive runtime library offering
- Support for multi-arch and java code fat-jar deployment
- Native library including JNI bundle handling and Jar file cache
- Platform architecture information retrieval, ELF parser, alignment etc
- Enhanced NIO buffer handling for pointer, arrays, DMA mapping etc
- Network Uri RFC 2396, connection and resource handler to simplify asset loading
- Bitstream, hash maps, ringbuffer, sha cumulator, reflection and threading utils
- Abstract AudioFormat and AudioSink interfaces, concurrent locks .. and more
GlueGen's compiler reads ANSI C header files and separate configuration files which provide control over many aspects of the glue code generation. GlueGen uses a complete ANSI C parser and an internal representation (IR) capable of representing all C types to represent the APIs for which it generates interfaces. It has the ability to perform significant transformations on the IR before glue code emission.
GlueGen can produce native foreign function bindings to Java™ as well as map native data structures to be fully accessible from Java™ including potential calls to embedded function pointer.
GlueGen supports registering Java™ callback methods to receive asynchronous and off-thread native toolkit events, where a generated native callback function dispatches the events to Java™.
GlueGen also supports producing an OO-Style API mapping like JOGL's incremental OpenGL Profile API levels.
GlueGen is capable to bind low-level APIs such as the Java™ Native Interface (JNI) and the AWT Native Interface (JAWT) back up to the Java programming language.
Further, GlueGen supports generating JNI_OnLoad*(..) for dynamic and static libraries, also resolving off-thread JNIEnv* lookup.
GlueGen utilizes JCPP, migrated C preprocessor written in Java™.
GlueGen is used for the JogAmp projects JOAL, JOGL and JOCL.
GlueGen is part of the JogAmp project.