Git Product home page Git Product logo

saturn-sdk-gcc-sh2's Introduction

| SEGA SATURN HITACHI SUPERH SH-2 GCC C COMPILER |

|OVERVIEW|
This is an optimised version of the GCC C compiler for Hitachi SuperH SH-2
microprocessors.

|BUILDING|
Currently, only GNU/Linux and Windows are actively supported as build targets.
Other operating systems may work with modification to the build files.  If you
have made changes to build on a non-supported operating system, please use
GitHub to make a pull request.  All new build platforms are very much
appreciated.

Mac OS X is supported by way of Misty De Meo.

In order to successfully build GCC, the following environment variables need
to be defined:
export SRCDIR=$(pwd)/source
export BUILDDIR=$(pwd)/build
export TARGETMACH=sh-elf
export BUILDMACH=x86_64-pc-linux-gnu
export HOSTMACH=x86_64-pc-linux-gnu
export INSTALLDIR=$(pwd)/toolchain
export SYSROOTDIR=$INSTALLDIR/sysroot
export ROOTDIR=$(pwd)
export DOWNLOADDIR=$(pwd)/download
export PROGRAM_PREFIX=saturn-sh2-

PROGRAM_PREFIX is the prefix used before the tool's name, such as:
saturn-sh2-gcc, where gcc is the program, with saturn-sh2- being the prefix.
BUILDMACH is the development machine the compiler will run on.

The HOSTMACH is the system architecture the compiler will run on, while the
TARGETMARCH is the architecture the program or library created from the Saturn
SH-2 compilerwill run on.

BUILDMACH is used for cross-compiling, set it to the current machine's build
architecture, and the HOSTMACH to the platform the generated compiler will run
on.  When not cross-compiling, set both HOSTMACH and BUILDMACH to the same
value.

Depending on the operating system the compiler is built on, additional tools
may be required.  For cross-compiling for Windows, MinGW-w64 (i686 or x86_64)
will be required on GNU/Linux systems.

There are no Windows batch files for compilation of the compiler on a native
Windows install.  MSYS with MinGW-w64 or Cygwin may work, though they have not
been tested.

SKIP_DOWNLOAD can be set to any string to skip the call to `download.sh`, for
example if the dependency tarballs have already been downloaded using something
else.


After the environment variables are set, run build-elf.sh.

saturn-sdk-gcc-sh2's People

Contributors

mistydemeo avatar redringrico avatar

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.