Coder Social home page Coder Social logo

ada-dreamcast-helloworld's Introduction

Ada hello world on DreamCast

Thanks to rust-for-dreamcast! The rotating cube has been directly ported from the Rust example.

Requirements

Building instructions

Toolchain

To build the KallistiOS toolchain, you need a matching GNAT compiler. More specifically, if you're attempting to build GCC-14 for the Dreamcast, you must use GCC-14 on the host along with the GNAT compiler and tools at version 14.

$ cd $SOME_ROOT && git clone -b dkm/ada_support https://github.com/dkm/KallistiOS.git

And follow the regular KallistiOS build instructions.

The sample Hello world + OpenGL example

$ cd $SOME_ROOT && git clone https://github.com/dkm/kallistios_ada_runtime.git
  • Clone this repository:
$ cd $SOME_ROOT && git clone https://github.com/dkm/ada-dreamcast-helloworld.git
  • Generate bindings and texture files
$ gen.sh
  • Build the applications
$ cd $SOME_ROOT/dchelloworld/ && gprbuild  -f  dchelloworld.gpr -XRUNTIME_BUILD=Production

Execute with lxdream if you don't have a DreamCast (like me!).

$ lxdream-nitro  -u -e ./bin/gldemo2

Rotating cube with Ada logo.

Debug

  • run the emulator
$ lxdream-nitro --gdb-sh4=1235 -n  -u -e ./bin/dchelloworld
  • attach gdb
$ gdb-multiarch  --eval "target remote localhost:1235" bin/dchelloworld

Break on init or __ada_dchelloworld.

ada-dreamcast-helloworld's People

Contributors

dkm avatar gyrovorbis avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gyrovorbis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.