Path: chuka.playstation.co.uk!news From: James Tait Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: That dreaded Linux query again.... Date: Fri, 25 Sep 1998 03:49:29 +0100 Organization: Wyrd Dreams - Internet Realities Lines: 49 Message-ID: <360B04B9.E258EC5D@wyrddreams.demon.co.uk> References: <360AF965.4D35F33B@wyrddreams.demon.co.uk> NNTP-Posting-Host: wyrddreams.demon.co.uk Mime-Version: 1.0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.27 i586)  OK, stop the press!  I've managed to get somewhere.  If I do this it works:
 
  wyrddreams{JTait}688: psx-gcc -v -S main.c
Reading specs from /usr/lib/gcc-lib/psx/2.8.0/specs
gcc version 2.8.0
/usr/lib/gcc-lib/psx/2.8.0/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=
8 -Dmips -DMIPSEL -DR3000 -D_mips -D_MIPSEL -D_R3000 -D__PSX__ -D__mips__ -D__MI
PSEL__ -D__R3000__ -D___mips__ -D_MIPSEL -D_R3000 -D__PSX__ -D__mips -D__MIPSEL 
-D__R3000 -D___mips -D__LANGUAGE_C -D_LANGUAGE_C -DLANGUAGE_C -D__SIZE_TYPE__=un
signed int -D__PTRDIFF_TYPE__=int main.c /tmp/cca24715.i
GNU CPP version 2.8.0 [AL 1.1, MM 40] SCE PlayStation
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/psx/2.8.0/include
 /usr/psx/include
End of search list.
 /usr/lib/gcc-lib/psx/2.8.0/cc1 /tmp/cca24715.i -quiet -dumpbase main.c -version
 -o main.s
GNU C version 2.8.0 (psx) compiled by GNU C version 2.8.0.
main.c: In function `main':
main.c:16: warning: return type of `main' is not `int'
wyrddreams{JTait}689: psx-as -o main.o main.s
wyrddreams{JTait}690: psx-ld -EL -lps -L/usr/lib/gcc-lib/psx/2.8.0 -o main main.
o -lps
wyrddreams{JTait}691: ls
Makefile*  main*      main.c*    main.o     main.s     pad.c*     pad.h*
   That created the main file and that downloads and runs, so I now know I can create psx programs of one source file....  The only thing I really want to know is why won't it run the psx versions of the assembler and linker of its own accord?  Further suggestions anyone?
-- 
Take care,

JT

                                    \\|//
                                    (O-O)
--------------------------------oOO--(_)--OOo---------------------------------
  "I can take you out with just a flick of my wrist" - Garbage (Supervixen)
e-mail: jt061@nova.mdx.ac.uk      Internet URL:  http://www.mdx.ac.uk/~jt061/
         Home: 01623 635037                     Mobile: 0956 652763