This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: values types for Java
Andrew Haley <aph@redhat.com> writes:
> > 1. They use interprocedural analysis, which is not compatible with
> > separate compilation.
>
> Why is that a problem? You want intraprocedural optimzation, you
> compile the files together.
public class Main
public static void main(String[] s) {
new Foo().bar();
}
}
gcj -c Main.java
gcj -c Foo.java
ld Main.o Foo.o
When the first command is executed, gcj doesn't know if Foo.bar()
stashes a copy of the this pointer somewhere.
- a
--
"Education is not filling a bucket but lighting a fire." -- WB Yeats