[antlr-interest] GCJ

Ric Klaren klaren at cs.utwente.nl
Fri Jul 11 07:00:59 PDT 2003


Hi,

On Fri, Jul 11, 2003 at 11:47:49PM +1000, Robert Colquhoun wrote:
> I need to fix the patch up first, gjc complained about some synchronization
> in the antlr.collections.impl classes, i went overboard and removed the
> Vector and Stack classes and replaced with java.util versions...

Think those existed for some older java version not sure. But I still look
forward to a patch.

> -sh-2.05b$ ls -l antlr.jar a.out
> -rw-r--r--    1 rjc      users      358680 Jul 11 18:42 antlr.jar
> -rwxr-xr-x    1 rjc      users     2570901 Jul 11 18:43 a.out
> -sh-2.05b$ ldd a.out
>          libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4001f000)
>          libgcj.so.3 => /usr/lib/libgcj.so.3 (0x40027000)
>          libm.so.6 => /lib/libm.so.6 (0x4060a000)
>          libpthread.so.0 => /lib/libpthread.so.0 (0x4062b000)
>          libz.so.1 => /usr/lib/libz.so.1 (0x4067c000)
>          libdl.so.2 => /lib/libdl.so.2 (0x4068b000)
>          libc.so.6 => /lib/libc.so.6 (0x4068e000)
>          /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> -sh-2.05b$ gcj --version
> gcj (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> You pay quite a size penalty with the  gcj version - 2.6mb and you also
> might need to ship gcj.so which weighs in around 6mb.....compared to
> shipping 360k for antlr.jar and the 5mb java 1.3 runtime.

That's a stripped binary? If I make a redhat 9 rpm I hope it can use the
redhat installed gcj.so, probably it's also possible to compile it
staticaly (or only do gcj.so statically). And what's 2.6 Mb nowadays ;)
Advantage of using gcj is that it comes default nowadays with most linux
distributions, this unlike java for which you have to dig around first.
Also no classpath trouble. No trouble in figuring out you'd have to run
antlr.Tool etc. It would also open the opportunity for distributions to
ship antlr with/in place of pccts.

Cheers,

Ric
--
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  Wo das Chaos auf die Ordnung trifft, gewinnt meist das Chaos, weil es
  besser organisiert ist. --- Friedrich Nietzsche


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list