This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ adoption and improving our "PR"
Erik Poupaert writes:
>
> > It may have to wait for the new, more stable, ABI.
>
> I hope the new, more stable ABI will help with the following as well:
>
> $ gcj -v
> ...
> Thread model: posix
> gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
>
> $ cat Hello.java
>
> public class Hello
> {
> public static void main(String[] args)
> {
> System.out.println("hello");
> }
> }
>
> $ gcj -static Hello.java -o hello --main=Hello
>
> $ ls -lh hello
>
> -rwxr-xr-x 1 erik users 4.2M Apr 14 20:19 hello
>
> That is: 4,376,645 bytes.
I can guarantee that it will. With the new ABI, everything gets
looked up at runtime. So, you'll be able to have very small
executables but it'll be up to you to ensure that you include
everything you need in the runtime library.
Andrew.