|Lephe 7e1becbd79||3 months ago|
|cmake||3 months ago|
|include/gint||3 months ago|
|src||3 months ago|
|.gitignore||3 months ago|
|CMakeLists.txt||3 months ago|
|README.md||3 months ago|
|TODO||3 months ago|
|fx9860g.ld||7 months ago|
|fxcg50.ld||7 months ago|
|giteapc.make||3 months ago|
gint (pronounce “guin”) is an add-in unikernel for CASIO calculators of the fx-9860G II and fx-CG 50 families. It provides a mostly free-standing runtime and is used to develop add-ins under Linux, along with specialized GCC toolchains and the fxSDK.
When running in an add-in, gint takes control of the calculator's hardware from the operating system, and manages it with its own drivers. It exposes a new, richer API that takes advantage of the full capabilities of the machine.
This is free software: you may use it for any purpose, share it, modify it, and share your changes. Credit is not required, but please let me know!
gint also includes third-party code that is distributed under its own license. Currently, this only includes:
Because of its free-standing design, gint's API provides direct and efficient access to low-level MPU features, which includes:
The library also offers powerful higher-level features:
A couple of libraries extend these features, including:
gint can be installed automatically with GiteaPC.
% giteapc install Lephenixnoir/gint
Normally you don't use gint directly, instead the fxSDK provides project templates that are set up to use gint. Please see the fxSDK README file for details.
gint is built using the fxSDK, which provides a suitable
CMake environment for the calculator. gint is always installed in the
compiler's install path (as given by
sh-elf-gcc --print-search-dirs) which is
detected automatically, so normally you don't need to set the install prefix.
fx-CG 50 developers probably want a g3a wrapper as well; the reference implementation is Tari's mkg3a. This is needed at the very last compilation step to create the g3a file. On Arch Linux, you can use the AUR/mkg3a package maintained directly by Tari.
Building for fx-9860G II
fxsdk build-fx will invoke CMake and make. If you have specific configuration
options, run once with
-c to configure.
% fxsdk build-fx -c <OPTIONS...>
-c to build. This configures automatically.
% fxsdk build-fx
The available options are:
-DGINT_STATIC_GRAY=1: Put the gray engine's VRAMs in static RAM instead of using
Building for fx-CG 50
Same as fx-9860G II, except the command is
fxsdk build-cg instead of
The available options are:
-DGINT_USER_VRAM=1: Store all VRAMs in the user stack (takes up 350k/512k)
Gint module and link against
find_module(Gint 2.1 REQUIRED) target_link_libraries(<target_name> Gint::Gint)
Projects created with the fxSDK link with gint out-of-the-box. If you're not using the fxSDK, you will need to:
-lgint-cgon fx-CG 50.
If you don't have a standard library such as
Memallox's port of newlib, you also need
-m3 -mb or
-m4-nofpu -mb to specify the platform, but that
may not even be necessary.