Using short references to access program elements in a large address space
First Claim
1. A method for accessing a desired element during execution of a program, comprising:
- receiving a reference to the desired element during execution of the program;
determining if the reference is an internal reference to a location in a local package that is currently executing, or an external reference to a location in an external package;
if the reference is an external reference, using an index component from the reference to lookup an address for the desired element in a global reference table; and
using the address to access the desired element;
wherein the address retrieved from the global reference table is larger than the reference, thereby allowing the address to access a larger address space than is possible to access with the reference alone.
2 Assignments
0 Petitions
Accused Products
Abstract
One embodiment of the present invention provides a system that accesses a desired element during execution of a program. During operation, the system receives a reference to the desired element. The system determines if the reference is an internal reference to a location in a local package that is currently executing, or an external reference to a location in an external package. If the reference is an external reference, the system uses an index component of the reference to lookup an address for the desired element in a global reference table. Next, the system uses the address to access the desired element. Note that the address retrieved from the global reference table is larger than the reference, which allows the address to access a larger address space than is possible to access with the reference alone.
64 Citations
37 Claims
-
1. A method for accessing a desired element during execution of a program, comprising:
-
receiving a reference to the desired element during execution of the program;
determining if the reference is an internal reference to a location in a local package that is currently executing, or an external reference to a location in an external package;
if the reference is an external reference, using an index component from the reference to lookup an address for the desired element in a global reference table; and
using the address to access the desired element;
wherein the address retrieved from the global reference table is larger than the reference, thereby allowing the address to access a larger address space than is possible to access with the reference alone. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for accessing a desired element during execution of a program, the method comprising:
-
receiving a reference to the desired element during execution of the program;
determining if the reference is an internal reference to a location in a local package that is currently executing, or an external reference to a location in an external package;
if the reference is an external reference, using an index component from the reference to lookup an address for the desired element in a global reference table; and
using the address to access the desired element;
wherein the address retrieved from the global reference table is larger than the reference, thereby allowing the address to access a larger address space than is possible to access with the reference alone. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. An apparatus that facilitates accessing a desired element during execution of a program, comprising:
-
an execution mechanism that is configured to receive a reference to the desired element during execution of the program; and
an address resolution mechanism that is configured to determine if the reference is an internal reference to a location in a local package that is currently executing, or an external reference to a location in an external package;
wherein if the reference is an external reference, the address resolution mechanism is configured to use an index component from the reference to lookup an address for the desired element in a global reference table;
wherein the execution mechanism is additionally configured to use the address to access the desired element;
wherein the address retrieved from the global reference table is larger than the reference, thereby allowing the address to access a larger address space than is possible to access with the reference alone. - View Dependent Claims (26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36)
-
-
37. A means for accessing a desired element during execution of a program, comprising:
-
an execution means for receiving receive a reference to the desired element during execution of the program;
a determining means for determining if the reference is an internal reference to a location in a local package that is currently executing, or an external reference to a location in an external package;
a lookup means, wherein if the reference is an external reference, the lookup uses an index component from the reference to lookup an address for the desired element in a global reference table; and
wherein the execution means is additionally uses the address to access the desired element;
wherein the address retrieved from the global reference table is larger than the reference, thereby allowing the address to access a larger address space than is possible to access with the reference alone.
-
Specification