naosoft / snes-sdk

Super NES / Super Famicom Software Development Kit

Home Page:http://code.google.com/p/snes-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a cleaned-up fork of the 'snes-sdk'.

Differences from the original:

  • Focus on code readability: that's the whole point of using a higher-level language like C.
  • The original came with some version of snes9x. This is additional maintenance, and isn't really needed: just use your favorite SNES emulator (I'm using mednafen).

Objectives:

  • Switch to a LLVM/clang toolchain: this way we will benefit from lots of code optimizations, allowing us to write simpler C code.
  • C99 support. Currently, only C89 is supported.
  • Basic C++ 17 support. It would be nice to have: constexpr, virtual functions, destructors, templates. On the other hand, we probably don't need: new, catch/throw, the STL.

Dependencies:

  • A C compiler that supports '-m32'. On Debian/Ubuntu:
$ apt-get install gcc gcc-multilib

Usage:

$ cd snes-sdk
$ make
$ make install # This will install the toolchain to /tmp/snes-sdk

$ cd example
$ make # This will build example/bin/snesc.smc, that you can load into an emulator

About

Super NES / Super Famicom Software Development Kit

http://code.google.com/p/snes-sdk


Languages

Language:C 85.3%Language:Assembly 7.0%Language:C++ 3.2%Language:HTML 1.7%Language:Makefile 0.9%Language:Python 0.6%Language:Roff 0.5%Language:Perl 0.4%Language:Shell 0.3%Language:Batchfile 0.0%Language:Objective-C 0.0%