binary compatibility ABI (was: Re: [boehm-gc] Import 6.3 alpha 1)

Tom Tromey tromey@redhat.com
Wed Aug 20 17:02:00 GMT 2003


>>>>> "Bryce" == Bryce McKinlay <bryce@mckinlay.net.nz> writes:

>>>> static int a, b;
>>>> ...
>>>> return a + b;

Bryce> Yeah. With full binary compatibility, and assuming 'a' and 'b' are in
Bryce> another class, its 5 loads:
Bryce> load offset of a
Bryce> load offset of b
Bryce> load class pointer
Bryce> load a
Bryce> load b
Isn't there a missing `load otable pointer' in here?
And to get the otable, don't we have to dig through the vtable first?
I must still be missing something.
It could be fewer loads, if we put `location of a' and `location of b'
into the current class's otable:
load location of a
load a
load location of b
load b
(Again, `load otable pointer' and other stuff like that is implied.)
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /