Skip to content

Source files

Headers, implementation files and example programs referenced by the API documentation. This section is maintained in English. Each page displays the source and provides a download link. Source listings and downloads are refreshed from the repository before each site build. Program examples are extracted from the English API reference pages.

Building the examples

Run the commands in the API reference from the repository root. The Windows cross-compilers must be installed under build-x64-install/bin/, with their matching runtime and sysroot. Compiler executables and runtime libraries are not included in these source downloads.

Download bindings with their directory structure intact. Save each example under build/api-examples/ as indicated in its reference page. The native wrappers are compiled as C before linking with the C++ program. The resulting ELF runs on GaspardOS.

Fortran modules, C++ bridge sources and examples are also available below. Build the complete Fortran library and examples with python bindings/fortran/build.py. The modern GUI bridge requires the C++ and native binding sources alongside it. Fortran 77 sources use a separate ABI and are included for compatibility.

The Newlib x64 backend section includes current-directory handling and the transport adapter. Compile the shared backend with GASPARDOS_NEWLIB_X64; its i686 compatibility branches are preserved in the downloads. The x64 system call reference explains the ABI and newlib mapping.

C++ bindings

Native wrappers

Fortran bindings

Fortran examples

Newlib x64 backend

Program examples

Code style

GaspardTerminal modules