/bdj-cibyl

An example of using Cibyl MIPS-to-Java transpiler to run C programs on Blu-Play

Primary LanguageJava

BD-J Cibyl demo

This repository contains a demo of using Cibyl MIPS-to-Java compiler to run C code on BD-J by transpiling it into Java. The Cibyl transpiler may aid in porting C games to Blu-Play, however the transpiled code is a bit slower that the same code written directly in Java.

Note: Cibyl only runs on Unix-like systems. Windows users will have to use Cygwin.

cibyl/

This subdirectiry contains the C code to be compiled into Java. The cibyl/syscalls/ directory contains the declarations of static Java methods that the generated C code will be able to call.

To build the C part of the program, type make inside the cibyl/ directory. The Makefile expects the Cibyl binary toolchain to be located at ../cibyl/, relatively to the repository root.

java/

This subdirectory contains the actual Java Xlet that starts the C program and forwards access to the screen. It is to be compiled using PS3 BD-J SDK. Run ./copy-cibyl.sh before building to copy Cibyl-generated Java classes into the jar.