Sascha Brawer writes: > Andrew Haley <[EMAIL PROTECTED]> wrote on Thu, 6 Nov 2003 10:28:24 +0000: > > >> [having the VMInterfaces classes clearly marked as 'special' > >> would make it easy for VMs and compilers to just inline all calls > >> to them] > > >It's not particularly difficult to do, but at the moment we don't do > >it. gcj is perfectly capable of whole-program Java optimization but > >we have to follow Java rules, and one of those rules is that you > >cannot inline final methods because it breaks binary compatibility. > >We could teach gcj that VM<foo> classes are an exception to that rule, > >but I think you would agree that's not a pretty solution. > > Apparently, Java 1.5 will have "meta-data" (arbitrary, uninterpreted > declarations for language constructs that are represented in bytecode and > accessible via reflection), similar to CLI/.NET.
So we'd have something like public final class VMfoo { @Inline void native bar (int i); @Inline void baz (int i) { I could make that work. Andrew. _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath