This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Patch to allow Ada to work with tree-ssa
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc-patches at gcc dot gnu, java at gcc dot gnu dot org
- Date: Wed, 23 Jun 2004 10:54:42 +0530
- Subject: Re: Patch to allow Ada to work with tree-ssa
- References: <10406222257.AA12365@vlsi1.ultra.nyu.edu>
Richard Kenner wrote:
> >I don't know how to run Java code, though. Can you tell me the
> >command-line options I need with the file you provided to see the problem?
>
> gcj err6.java --main=err6
>
> This will work if done from the build directory? Will it properly find
> the library? Remember that I haven't done a "make install" ...
What I use is:
export MYGCJ="$BUILD/gcc/gcj -B$BUILD/gcc/ -B$BUILD/i686-pc-linux-gnu/libjava/ -I$BUILD/i686-pc-linux-gnu/libjava/libgcj-3.5.0.jar -L$BUILD/i686-pc-linux-gnu/libjava/.libs/"
alias mygcj="$MYGCJ"
mygcj --main=HelloWorld HelloWorld.java
LD_LIBRARY_PATH=$BUILD/i686-pc-linux-gnu/libjava/.libs ./a.out
($BUILD is set to the path to the folder where you're building GCC.)
I have to define the MYGCJ variable (and not just the alias) as
it is useful with Alexandre Oliva's "debugx" scripts to debug
the Java front end like so:
debugx jc1 $MYGCJ <whatever>
Hope this helps,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/