8 |
<lang:new id=en short> |
<lang:new id=en short> |
9 |
<lang:star:slice:> |
<lang:star:slice:> |
10 |
|
|
11 |
<set-var last-modified-author="<cbj>"> |
<set-var last-modified-author="<mjw>"> |
12 |
|
|
13 |
#include <include/macros.wml> |
#include <include/macros.wml> |
14 |
|
|
16 |
<en> |
<en> |
17 |
<p> |
<p> |
18 |
The Open Runtime Platform (<link |
The Open Runtime Platform (<link |
19 |
url="http://www.intel.com/research/mrl/orp/" name="ORP">) provides a |
url="http://orp.sourceforge.net/" name="ORP">) provides a |
20 |
covenient and simple platform for both using and testing GNU |
covenient and simple platform for both using and testing GNU |
21 |
Classpath. With the release of ORP 1.0.8, GNU Classpath's native |
Classpath. With the release of ORP 1.0.9, GNU Classpath's native |
22 |
libraries are finally supported almost out of the box. A small patch |
libraries are supported out of the box. |
|
is needed to correct a problem not detected before the release of this |
|
|
version of ORP and all subsequent versions are expected to work without |
|
|
it. This patch is in Classpath's CVS tree, |
|
|
classpath/resource/orp-1.0.8.patch. |
|
23 |
</p> |
</p> |
24 |
|
|
25 |
<H4>Steps to use ORP+GNU Classpath on GNU/Linux</H4> |
<H4>Steps to use ORP+GNU Classpath on GNU/Linux</H4> |
26 |
<p> |
<p> |
27 |
Example assumes ORP 1.0.8, see above. In the example, Classpath CVS |
Example assumes ORP 1.0.9, see above. In the example, GNU Classpath sources |
28 |
is in ~/cvs/classpath/. |
are in ~/src/classpath/. |
29 |
</p> |
</p> |
30 |
<UL> |
<UL> |
31 |
<LI>Obtain <link url="http://orp.sourceforge.net/" |
<LI>Obtain <link url="http://sourceforge.net/projects/orp/" |
32 |
name="ORP"> from Sourceforge</LI> |
name="ORP"> from the Sourceforge project page</LI> |
33 |
<OL> |
<OL> |
34 |
<LI><tt>wget |
<LI><tt>wget |
35 |
http://prdownloads.sourceforge.net/orp/orp20011116.tgz</tt></LI> |
http://prdownloads.sourceforge.net/orp/orp-1.0.9.tgz</tt></LI> |
36 |
<LI><tt>tar -xzvf orp20011116.tgz</tt></LI> |
<LI><tt>tar -xzvf orp-1.0.9.tgz</tt></LI> |
|
<LI><tt>mv orp orp-1.0.8</tt></LI> |
|
37 |
</OL> |
</OL> |
38 |
<LI>Apply the patch</LI> |
<LI>On some systems you might need to apply a patch to work around |
39 |
|
gcc compile problems</LI> |
40 |
<OL> |
<OL> |
41 |
<LI><tt>cd orp-1.0.8</tt></LI> |
<LI><tt>cd orp-1.0.9</tt></LI> |
42 |
<LI><tt>patch -p1 < ~/cvs/classpath/resource/orp-1.0.8.patch</tt></LI> |
<LI><tt>patch -p1 < ~/src/classpath/resource/orp-1.0.9.patch</tt></LI> |
43 |
</OL> |
</OL> |
44 |
<LI>Build ORP</LI> |
<LI>Build ORP</LI> |
45 |
<OL> |
<OL> |
47 |
</OL> |
</OL> |
48 |
</UL> |
</UL> |
49 |
<p> |
<p> |
50 |
ORP should now be built and ready, orp-1.0.8/mains/orp/Linux/dbg/orp. |
ORP should now be built and ready, orp-1.0.9/mains/orp/Linux/dbg/orp. |
51 |
</p> |
</p> |
52 |
<H4>Using ORP+GNU Classpath on GNU/Linux</H4> |
<H4>Using ORP+GNU Classpath on GNU/Linux</H4> |
53 |
<p> |
<p> |
74 |
<UL> |
<UL> |
75 |
<LI>Running HelloWorld with ORP</LI> |
<LI>Running HelloWorld with ORP</LI> |
76 |
<OL> |
<OL> |
77 |
<LI><tt>orp-1.0.8/mains/orp/Linux/dbg/orp -swapjit 0 1 -classpath |
<LI>Create a <tt>HelloWorld.java</tt> file and compile to a class file |
78 |
|
with <tt>jikes</tt> or <tt>gcj -C</tt></LI> |
79 |
|
<LI><tt>orp-1.0.9/mains/orp/Linux/dbg/orp -swapjit 0 1 -classpath |
80 |
$CLASSPATH HelloWorld</tt></LI> |
$CLASSPATH HelloWorld</tt></LI> |
81 |
</OL> |
</OL> |
82 |
</UL> |
</UL> |
83 |
<p> |
<p> |
84 |
ORP contains two JITs at this time. By default ORP 1.0.8 uses a |
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 |
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 |
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 |
-swapjit 0 1 argument to ORP. ORP does not have the ability at this |