This is a basic demo I made showing interop between Rust, C, and Fortran on the Sega Dreamcast in the form of a 3D textured rotating cube, based on the classic nehe06 demo. The Rust code drives the main logic and is compiled using the Rust-GCC compiler "gccrs" since the standard LLVM-based Rust toolchain does not support the SuperH architecture in the Dreamcast. Due to its early and experimental nature, only a fraction of the Rust language is available, and pointer arithmetic functions are not yet working, so Fortran was used for this as a fun twist. The GLdc/KallistiOS C libraries are called, but no other C is used in the demo.
-
Notifications
You must be signed in to change notification settings - Fork 0
dreamcast-rs/gccrs-fortran-cube
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A 3D cube demo demonstrating Rust and Fortran interop on Sega Dreamcast using the gccrs compiler