welcome to www.hangar-eleven.de - your premier resource for console development





Development Env

Installing Cygwin

Building EE (R5900) toolchain
Compiling EE binutils
Compiling EE GCC

Building IOP(R3000) toolchain
Compiling IOP binutils
Compiling IOP GCC

Compiling PSX2LIB

PS2 Independence Exploit

Testing LIB and the Compilers
Writing the first program
Compiling the first program
Uploading to the PS2

Making a CD

Back to News

 

  Compiling an Assembler for the DVP (VU)
  Written: January 12th, 2002 @ 12:23 GMT By: Thorsten Titze
 
 

We now have the GCC cross-compiler for the Emotion Engine and the IOP. What we are still lacking is an assembler (C code is not supported for this target) for the VU's (Vector Units). We have to make a small modification to a configure file to enable the sources to compile for DVP.

There might be an easiert way but I didn't have too much time on my hands today. If anyone has an easier and more convenient method just let me know.

  • Open up the file config.sub in the directory /gcc/gnu-ee-binutils-gcc in your favorite editor

  • Find the following lines: (the .......'s mean the line's continuing)

    # Recognize the basic CPU types without company name.
    # Some are omitted here because they have special ......
    tahoe | i860 | ia64 | m32r | m68k | m68000 ......


    and change them to:

    # Recognize the basic CPU types without company name.
    # Some are omitted here because they have special ......
    tahoe | dvp | i860 | ia64 | m32r | m68k | m68000 ......


    (the bold part is what you should add)

  • Now you have to choices, you can either compile everything you need yourself or use the shellscript here to let it compile for you.

    (in case you use the shell-script, check whether it reflects the rights paths you are using and copy it to /gcc/build-gcc and run it there)

  • If you want to do it yourself, here is how :

  • Set the needed environment variables in your shell with the following commands:

    target=dvp-elf
    prefix=/usr/local/ps2/$target
    binaries=$prefix/bin
    PATH=$binaries:$PATH

  • Change to your BUILD-GCC directory

    cd /gcc/build-gcc

  • Now for every directory which is in the following list:

    libiberty
    bfd
    opcodes
    binutils
    ld
    gas


    execute the following commands:
    (after changing into the directory with cd <directoryname>)

  • First (due to the way the Makefiles are built) link the libintl.a directory

    ln -s ../intl

  • Secondly configure it for you configration with

    ../../gnu-ee-binutils-gcc/configure --target=$target --prefix=$prefix

  • Now start the make-procedure and the installation

    make all install

  • Do this for every directory listed above

Now you have your PS2™ VU0/VU1 Assembler sitting in /usr/local/ps2/dvp-elf/bin.

 

  Go to the sourceforge homepage of KallistiOS

Back to Playstation 2 Development Main


DISCLAIMERS:
Website Design © 2002 by Thorsten Titze / hangar-eleven.de
(the pictures used for the design were taken from a WindowsXP Skin and WindowsXP)
All brand names used on this site are registered trademarks of their respective owners
No copyright infringement is intended
Last updated @ 23-Aug-2003 5:10 PM Contact me via eMail