values types for Java

Adam Megacz adam@megacz.com
Tue Oct 21 18:30:00 GMT 2003


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



More information about the Java mailing list