OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [classpath/] [doc/] [www.gnu.org/] [docs/] [orp.wml] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
#!wml --include=..
2
 
3
#use wml::std::page
4
#use wml::std::lang
5
#use wml::fmt::isolatin
6
#use wml::std::case global=upper
7
 
8
9
10
 
11
12
 
13
#include 
14
 
15
16
17

18
The Open Runtime Platform (
19
url="http://orp.sourceforge.net/" name="ORP">) provides a
20
covenient and simple platform for both using and testing GNU
21
Classpath.  With the release of ORP 1.0.9, GNU Classpath's native
22
libraries are supported out of the box.
23

24
 
25

Steps to use ORP+GNU Classpath on GNU/Linux

26

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

30
31
  
  • Obtain
  • 32
           name="ORP"> from the Sourceforge project page
    33
      
    34
        
  • wget
  • 35
        http://prdownloads.sourceforge.net/orp/orp-1.0.9.tgz
    36
        
  • tar -xzvf orp-1.0.9.tgz
  • 37
      
    38
      
  • On some systems you might need to apply a patch to work around
  • 39
      gcc compile problems
    40
      
    41
        
  • cd orp-1.0.9
  • 42
        
  • patch -p1 < ~/src/classpath/resource/orp-1.0.9.patch
  • 43
      
    44
      
  • Build ORP
  • 45
      
    46
        
  • make NON_ORP_NATIVE_LIBS=-DNON_ORP_NATIVE_LIBS dbg
  • 47
      
    48
    49

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

    52

    Using ORP+GNU Classpath on GNU/Linux

    53

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

    61
    62
      
  • Set the LD_LIBRARY_PATH variable (assumes Bash shell)
  • 63
      
    64
        
  • export LD_LIBRARY_PATH=/usr/local/classpath/lib/classpath
  • 65
      
    66
    67
    68
      
  • Set the CLASSPATH variable (ORP doesn't yet use this but it
  • 69
      makes the command line easier).
    70
      
    71
        
  • export CLASSPATH=/usr/local/classpath/share/classpath/:.
  • 72
      
    73
    74
    75
      
  • Running HelloWorld with ORP
  • 76
      
    77
        
  • Create a HelloWorld.java file and compile to a class file
  • 78
        with jikes or gcj -C
    79
        
  • orp-1.0.9/mains/orp/Linux/dbg/orp -swapjit 0 1 -classpath
  • 80
        $CLASSPATH HelloWorld
    81
      
    82
    83

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

    91
    92

    powered by: WebSVN 2.1.0

    © copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.