Complete C standard library
Posté le 19/08/2018 19:31
Until now there was no complete C standard library (aka libc
) available for the Casio calculators. Although some parts of this library have been provided by fxlib and gint
, there was no libc implementation complying with the standard and compatible with the sh3eb architecture ready to use.
To change that, I decided to port newlib
to the Casio CPU. Newlib is an alternative libc implementation intended for use on embedded systems.
Follow this link and click the download button in the top right corner:
>>> v1.1 <<<
Instructions on how to install newlib alongside with gcc (big shout-out to Lephé):
Compiler sous Linux avec GCC
Features for Casio fx9860g calculators:
* C standard library libc
implementation to print text to the display
→ Dynamic allocation of memory using malloc
→ Memory manipulation using memcpy
→ String manipulation using strcpy
* Math library libm
→ Floating point arithmetics
* Automatic library and include path recognition after installation
* Basic Casio features:
→ implementation of GetKey
without fxlib (but you can use it if you want)
To contribute or get all those bleeding edge features, see the code including all further information:
libc (my GitLab repository)
The project you find in my repository is a fork of the official newlib repository
. To make it easier for everyone to follow, I try to keep a clean git history
. That means that all my changes are located on a dedicated branch with meaningful commits.
I also try to keep the changes to the upstream library minimal. That increases maintainability a lot.
If you have a ideas, feature request, found a bug or simply want to contribute, just send me a message and you're in! You can also create Issues
and Merge Requests
directly in the repository. As in every OpenSource project: merge requests welcome!