This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: ARM support
Erik Poupaert writes:
>
> Here he is obviously dead stuck in the water. There is no way to know if
> myclass_mymethod2() is getting used anywhere or not.
>
> In my impression, in order to drag along as few additional classes
> and methods along in order to compile and link an entry point, the
> purging must be done almost at source level:
This can be done at link time if a linker is sufficiently smart.
Indeed, it is done for C++, where it is called "vtable garbage
collection." The problem in Java is that every method is reachable by
reflection.
Andrew.