From c8875fb97fc03779a5bba09872227b1d08e5d52a Mon Sep 17 00:00:00 2001 From: tromey Date: Sat, 16 Jul 2005 00:30:23 +0000 Subject: Initial revision git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102074 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/classpath/doc/www.gnu.org/docs/orp.wml | 92 ++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 libjava/classpath/doc/www.gnu.org/docs/orp.wml (limited to 'libjava/classpath/doc/www.gnu.org/docs/orp.wml') diff --git a/libjava/classpath/doc/www.gnu.org/docs/orp.wml b/libjava/classpath/doc/www.gnu.org/docs/orp.wml new file mode 100644 index 00000000000..b8a81eaabfc --- /dev/null +++ b/libjava/classpath/doc/www.gnu.org/docs/orp.wml @@ -0,0 +1,92 @@ +#!wml --include=.. + +#use wml::std::page +#use wml::std::lang +#use wml::fmt::isolatin +#use wml::std::case global=upper + + + + + + +#include + +
+ +

+The Open Runtime Platform () provides a +covenient and simple platform for both using and testing GNU +Classpath. With the release of ORP 1.0.9, GNU Classpath's native +libraries are supported out of the box. +

+ +

Steps to use ORP+GNU Classpath on GNU/Linux

+

+Example assumes ORP 1.0.9, see above. In the example, GNU Classpath sources +are in ~/src/classpath/. +

+
    +
  • Obtain from the Sourceforge project page
  • +
      +
    1. wget + http://prdownloads.sourceforge.net/orp/orp-1.0.9.tgz
    2. +
    3. tar -xzvf orp-1.0.9.tgz
    4. +
    +
  • On some systems you might need to apply a patch to work around + gcc compile problems
  • +
      +
    1. cd orp-1.0.9
    2. +
    3. patch -p1 < ~/src/classpath/resource/orp-1.0.9.patch
    4. +
    +
  • Build ORP
  • +
      +
    1. make NON_ORP_NATIVE_LIBS=-DNON_ORP_NATIVE_LIBS dbg
    2. +
    +
+

+ORP should now be built and ready, orp-1.0.9/mains/orp/Linux/dbg/orp. +

+

Using ORP+GNU Classpath on GNU/Linux

+

+ORP needs to load shared libraries and the class library bytecode. +The recommended method is to use the environment variable +LD_LIBRARY_PATH to provide a colon separated list of directories in +which to look for GNU Classpath's shared libraries. The example below +assumes the user built and installed GNU Classpath without modifing +the default prefix. +

+
    +
  • Set the LD_LIBRARY_PATH variable (assumes Bash shell)
  • +
      +
    1. export LD_LIBRARY_PATH=/usr/local/classpath/lib/classpath
    2. +
    +
+
    +
  • Set the CLASSPATH variable (ORP doesn't yet use this but it + makes the command line easier).
  • +
      +
    1. export CLASSPATH=/usr/local/classpath/share/classpath/:.
    2. +
    +
+
    +
  • Running HelloWorld with ORP
  • +
      +
    1. Create a HelloWorld.java file and compile to a class file + with jikes or gcj -C
    2. +
    3. orp-1.0.9/mains/orp/Linux/dbg/orp -swapjit 0 1 -classpath + $CLASSPATH HelloWorld
    4. +
    +
+

+ORP contains two JITs at this time. By default ORP uses a +so-called JIT 3 and for some things it appears to have more problems +than when using JIT 1. This is the reasoning behind adding the +-swapjit 0 1 argument to ORP. ORP does not have the ability at this +time to execute raw bytecode and must use one of these two JIT +compilers. +

+
+