[e-lang] E-on-Java works with recent gcj
Toby Murray
toby.murray at dsto.defence.gov.au
Mon Aug 14 23:44:07 EDT 2006
Toby Murray wrote:
>I've now managed to get a binary up and
>running that requires no special tweaking of classpath etc. at runtime.
>The binary also uses precompiled versions for classes (which are stored
>in a shared library) when loading them at runtime, which increases the
>start-time by about 10% over a version where everything has to be loaded
>from bytecode.
>
>
Err. Sorry, that should be "which decreases the start-time by about 10%". :)
>I've attached a Makefile that I was using to build this stuff. I had to
>transcribe the Makefile from a hardcopy so it might have typos in it.
>Hopefully there's enough context to allow someone to fix typos in it etc.
>
>
I've just done a quick check of that Makefile and found two typos. I've
attached an updated version that also includes some comments, which I
left-out of the original.
If anyone else can test this, that'd be great. It shouldn't require more
than two one-line patches to the sources (as mentioned earlier) and then
just a 'make -f Makefile.gcj' to build the thing. The binary will end up
in BUILD/bin/ and be called 'e'.
One main issue is that you can't relocate some of the stuff in
BUILD/lib, notably 'e.jar' and 'e.jar.so' and 'classmap.db'. This is
because the binary has references to the full path to 'e.jar' and
'classmap.db'. 'classmap.db' has a reference to the full path to 'e.jar.so'.
I think the usual trick that's used (at least in Fedora Core 5) is to
have a /usr/lib/e/ directory, in which lives 'e.jar' and 'e.jar.so' and
'classmap.db'. Then all full path references point to files in this
directory. This seems to work OK for a redistributable installable
package like an RPM and could be a potential option for an E RPM binary
distribution.
--
Toby Murray
Advanced Computer Capabilities Group
Information Networks Division
DSTO, Australia
IMPORTANT: This e-mail remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the
Crimes Act 1914. If you have received this e-mail in error, you are
requested to contact the sender and delete the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eros-os.org/pipermail/e-lang/attachments/20060815/4a4730eb/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile.gcj
Url: http://www.eros-os.org/pipermail/e-lang/attachments/20060815/4a4730eb/attachment.pl
More information about the e-lang
mailing list