360haven works best with JavaScript enabled
Setting up a PowerPC compiler under linux and compiling code
Loading
Register
Results 1 to 3 of 3
  1. #1
    Divided by zero and lived

    mojobojo is offline
    Join Date : Dec 2010
    Posts : 389
    Array

    Setting up a PowerPC compiler under linux and compiling code

    Sorry Windows users, this is a job for linux. This is for under pretty much any version of Ubuntu. If you are not on Ubuntu or any Debian based OS you will need to install some packages manually.

    Prerequisites
    You must have gcc and make installed before continuing
    Code:
    sudo apt-get install gcc make
    First you must get the proper packages
    Code:
    sudo apt-get install libgmp3-dev libmpfr-dev texinfo git-core gettext build-essential
    Continue on past this to "Clone free60s git" if you are using Ubuntu.

    Building gmp and mpfr manually.

    gmp first
    Code:
    cd /tmp/
    wget http://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.gz
    tar xvf gmp-4.3.2.tar.gz
    cd gmp-4.3.2
    ./configure
    sudo make install
    then mpfr
    Code:
    cd /tmp/
    wget http://ftp.gnu.org/gnu/mpfr/mpfr-3.0.0.tar.gz
    tar xvf mpfr-3.0.0.tar.gz
    cd mpfr-3.0.0
    ./configure
    sudo make install
    Clone free60s git
    Code:
    git clone git://free60.git.sourceforge.net/gitroot/free60/free60
    Navigate to the toochain dir
    Code:
    cd free60/toolchain
    Build the toolchain as superuser
    Code:
    sudo ./build-xenon-toolchain toolchain
    When its done open up .bashrc in gedit
    Code:
    gedit ~/.bashrc
    Add these lines to the bottom
    Code:
    export DEVKITXENON="/usr/local/xenon"
    export PATH="$PATH:$DEVKITXENON/bin:$DEVKITXENON/usr/bin"
    Close terminal and open it back up for the changes to take effect.

    Compile your assembly code
    Code:
    xenon-as -be -many asmcode.S -o out.elf
    Output it as binary
    Code:
    xenon-objcopy out.elf -O binary out.bin
    Downloads : 4 || Uploads : 1 || Rep Power : 5698 || Posts : 389 || Thanks : 52 || Thanked 1,033 Times in 236 Posts




  2. The Following 11 Users Say Thank You to mojobojo For This Useful Post:

    + Show/Hide list of the thanked


  3. #2
    Hoshikage


    pureIso is offline
    Join Date : Jan 2011
    Location : somewhere In Ireland
    Posts : 2,733
    Array

    Re: Setting up a PowerPC compiler under linux and compiling code

    Can you please show a simple hello world programming and compile and results please :)
    Downloads : 69 || Uploads : 22 || Rep Power : 8415 || Posts : 2,733 || Thanks : 557 || Thanked 2,980 Times in 735 Posts



    ## If you don't Contribute || Help - Why should I Contribute || Help - Leechers Should not be helped ##

  4. #3
    Divided by zero and lived

    mojobojo is offline
    Join Date : Dec 2010
    Posts : 389
    Array

    Re: Setting up a PowerPC compiler under linux and compiling code

    Quote Originally Posted by pureIso View Post
    Can you please show a simple hello world programming and compile and results please :)
    Credit goes to Tuxuser @ libxenon.org. The other source "xenontemp" is somthing I wrote to request the temperature readout from the SMC. link
    Attached Files Attached Files
    Downloads : 4 || Uploads : 1 || Rep Power : 5698 || Posts : 389 || Thanks : 52 || Thanked 1,033 Times in 236 Posts




  5. The Following 2 Users Say Thank You to mojobojo For This Useful Post:


 

 

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

About 360haven

    360haven is an Forum Devoted To Game modding Fans from all over the world.

    An Awesome Community of Xbox 360 Gamers, Modders and Developers who Create & Share Tutorials, Applications, Gfx, Trainers and Gamesaves.

    A haven for the l33t.
    A scarce paradise for modders.

★★★★★¯\_(ツ)_/¯