gbdk libraries updated for newer versions of sdcc
Assembly C++ C Makefile Other
Switch branches/tags
Nothing to show
Clone or download
andreasjhkarlsson Merge pull request #11 from ochristensen/master
Include dirs aren't needed for linking and -L allows multiple individual libs
Latest commit 4e68b98 Mar 10, 2017
Failed to load latest commit information.
include Rename gbdk-n rand function to _rand to avoid name collision with sdc… Feb 20, 2016
libc Rename gbdk-n rand function to _rand to avoid name collision with sdc… Feb 20, 2016
.gitignore Add .gitignore Sep 22, 2015
Make.bat Add better error checking Sep 4, 2016



The Gameboy Development Kit (GBDK) is an SDK for developing applications/games for the gameboy platform. The library bundles a custom version of the Small Device C Compiler (SDCC), libraries & examples.

The latest update of GBDK was a long time ago (mid 2002). Since then the SDCC compiler has gotten native support for compiling and linking fully functional gameboy roms.

However GBDK is still useful since it contains libraries for developing applications for the gameboy family. This project aims to update the libraries to be compatible with new versions of SDCC and provide helpers for building roms.

The GBDK libraries are copied from the latest source release on sourceforge:


Building the library:

$ make

Building the examples:

$ make examples

Building custom ROMs:

NOTE: All commands listed below are simply wrappers to SDCC, see the SDCC documentation for flags and general usage.

  • Compile / assemble .c files and .asm files into .rel files using the and commands respectively.
  • Link together one or more .rel files into an .ihx file using the command.
  • Create a ready to use .gb rom file from the .ihx file with the command.

For exact commands, please see the Makefiles for the example programs.