PC-FX(GA) development with binutils and gcc

V810 patches

V810 patches for binutils-2.10 and gcc-2.95.2 are modification of V850 source.

An ldscript similar to one for Virtual Boy should be made.

Installing on a unix based system

Applies for Cygwin, Linux, BSD, OSX, Unix, etc.

Required files

Installing binutils

The following commands should build a good binutils. Substitute V810DEV with whatever directory you'd like, and make sure you have write access (or use sudo for make install). You should also put the first two export statements in your .bash_profile or equivalent.

$ export V810DEV=/opt/v810
$ export PATH=$V810DEV/bin:$PATH
$ tar xvf binutils-2.10.tar.gz
$ cd binutils-2.10
$ patch -p1 <../binutils-2.10-v810patch20110320.patch
$ ./configure --target=v810 --prefix=$V810DEV
$ make
$ make install

Installing gcc

Make sure you have a similar setup from installing binutils. I assume you have V810DEV and your path properly set.

$ tar xvf gcc-2.95.2.tar.gz
$ cd gcc-2.95.2
$ patch -p1 <../gcc-2.95.2-v810patch20110320.patch
$ ./configure --target=v810 --prefix=$V810DEV --with-newlib 
$ make
# make install

V810-specific GCC options

"By the way, PC-FX PC-FX in the area zda work area because there zda I do not think that you are using."

Creating PC-FX binary from ELF

GCC and binutils create ELF files. These must be converted to PC-FXGA binary files like so:

$ v810-objcopy -O binary -R .stack -R .zdata foo.elf foo.bin

History

2000/10/21

2000/09/28

2000/09/27

2000/09/25

2000/09/21

2000/09/19

2000/09/16

2000/09/13

2000/09/11

2000/09/10


[TOP]