{"id":13568515,"url":"https://github.com/dkm/ada-dreamcast-helloworld","last_synced_at":"2025-06-23T06:36:20.613Z","repository":{"id":221709091,"uuid":"755166137","full_name":"dkm/ada-dreamcast-helloworld","owner":"dkm","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-28T19:49:23.000Z","size":10890,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-02T14:11:31.611Z","etag":null,"topics":["ada","dreamcast","kallistios","sh4"],"latest_commit_sha":null,"homepage":"","language":"Ada","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING3","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-09T15:04:52.000Z","updated_at":"2024-12-19T03:42:07.000Z","dependencies_parsed_at":"2024-05-01T07:50:45.741Z","dependency_job_id":null,"html_url":"https://github.com/dkm/ada-dreamcast-helloworld","commit_stats":null,"previous_names":["dkm/dchelloword","dkm/ada-dreamcast-helloworld"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dkm/ada-dreamcast-helloworld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkm%2Fada-dreamcast-helloworld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkm%2Fada-dreamcast-helloworld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkm%2Fada-dreamcast-helloworld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkm%2Fada-dreamcast-helloworld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkm","download_url":"https://codeload.github.com/dkm/ada-dreamcast-helloworld/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkm%2Fada-dreamcast-helloworld/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261430279,"owners_count":23157158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ada","dreamcast","kallistios","sh4"],"created_at":"2024-08-01T14:00:27.160Z","updated_at":"2025-06-23T06:36:15.595Z","avatar_url":"https://github.com/dkm.png","language":"Ada","funding_links":[],"categories":["Languages"],"sub_categories":[],"readme":"# Ada hello world on DreamCast\n\nThanks to [rust-for-dreamcast](https://github.com/darcagn/rust-for-dreamcast/)!\nThe rotating cube has been directly ported from the Rust example.\n\n## Requirements\n* Ada-enabled [KallistiOS toolchain](https://github.com/dkm/KallistiOS)\n* [KallistiOS Ada Runtime](https://github.com/dkm/kallistios_ada_runtime)\n* gprbuild (18 from debian is too old, 22 is known to work). Use\n  [GNAT-FSF-builds\n  releases](https://github.com/alire-project/GNAT-FSF-builds/releases/tag/gprbuild-22.0.0-1)\n  for example.\n\n## Building instructions\n### Toolchain\nTo build the KallistiOS toolchain, you need a matching GNAT compiler. More\nspecifically, if you're attempting to build GCC-14 for the Dreamcast, you must\nuse GCC-14 on the host along with the GNAT compiler and tools at version 14. \n``` sh\n$ cd $SOME_ROOT \u0026\u0026 git clone -b dkm/ada_support https://github.com/dkm/KallistiOS.git\n```\n\nAnd follow the regular KallistiOS build instructions.\n\n### The sample Hello world + OpenGL example\n- Clone [KallistiOS Ada Runtime](https://github.com/dkm/kallistios_ada_runtime):\n``` sh\n$ cd $SOME_ROOT \u0026\u0026 git clone https://github.com/dkm/kallistios_ada_runtime.git\n```\n- Clone this repository:\n``` sh\n$ cd $SOME_ROOT \u0026\u0026 git clone https://github.com/dkm/ada-dreamcast-helloworld.git\n```\n- Generate bindings and texture files\n\n``` sh\n$ gen.sh\n```\n- Build the applications\n``` sh\n$ cd $SOME_ROOT/dchelloworld/ \u0026\u0026 gprbuild  -f  dchelloworld.gpr -XRUNTIME_BUILD=Production\n```\n\nExecute with `lxdream` if you don't have a DreamCast (like me!).\n``` sh\n$ lxdream-nitro  -u -e ./bin/gldemo2\n```\n![Rotating cube with Ada logo.](./res/cube.gif)\n\n## Debug\n\n- run the emulator\n\n``` sh\n$ lxdream-nitro --gdb-sh4=1235 -n  -u -e ./bin/dchelloworld\n```\n\n- attach `gdb`\n\n``` sh\n$ gdb-multiarch  --eval \"target remote localhost:1235\" bin/dchelloworld\n```\n\nBreak on `init` or `__ada_dchelloworld`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkm%2Fada-dreamcast-helloworld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkm%2Fada-dreamcast-helloworld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkm%2Fada-dreamcast-helloworld/lists"}