Claims
- 1. An apparatus for executing a bytecode in runtime system, comprising:a bytecode source; an interpreter coupled to the bytecode source used to interpret the bytecode; a compiler coupled to the bytecode source used to compile the bytecode; a runtime system coupled to the interpreter and coupled to the compiler, wherein the runtime system is arranged to execute the interpreted bytecode when the bytecode is interpreted by the interpreter, and wherein the runtime system is arranged to execute the compiled bytecode when the bytecode is compiled by the compiler; an adapter/stub generator unit coupled to the compiler arranged to provide on demand an adapter source code or a stub source code to the compiler; a library coupled to the compiler and the runtime system arranged to store adapters and stubs compiled by the compiler, wherein when the runtime system retrieves an adapter when required.
- 2. An apparatus as recited in claim 1, wherein the bytecode is one of a series of bytecodes.
- 3. An apparatus as recited in claim 1, wherein the adapter generator is provided with adapter input parameters used to generate the required adapter.
- 4. A computer program product that implements an apparatus for processing a bytecode, comprising:computer code that interprets a received bytecode; computer code that compiles the received bytecode; computer code that generates an adapter when requested by the compiler; computer code that stores the adapter and provides the adapter to a runtime system when executing compiled or interpreted bytecodes; and a computer readable medium that stores the computer codes.
- 5. In a computer system, a method for processing a bytecode in a runtime environment, the method comprising:determining if an adapter is required in order to process the bytecode; determining if the adapter is located in an adapter library if the adapter is required; generating the adapter if it is determined that the required adapter is not in the library; storing the generated adapter in the library providing the adapter to the runtime environment; and executing the bytecode.
- 6. A computer program product that processes an bytecode in a runtime environment, comprising:computer code that provides a bytecode; computer code that determines if an adapter is required to execute the bytecode and generates the required adapter when the required adapter is not present in an adapter library and provides the required adapter to the runtime system on demand; and a computer readable medium that stores the computer codes.
- 7. The computer program product of claim 6, wherein the computer readable medium is selected from the group consisting of CD-ROM, floppy disk, tape, flash memory, system memory, hard drive, and data signal embodied in a carrier wave.
CROSS REFERENCE TO RELATED APPLICATION
This application is related to Provisional Application No. 60/130,671 filed Apr. 23, 1999, and entitled “FILE PORTABILITY TECHNIQUES” which is hereby incorporated by reference. This application is also related to (i) U.S. application Ser. No. 09/298,327 filed Apr. 23, 1999 and entitled “FILE PORTABILITY TECHNIQUES” which is hereby incorporated by reference, and (ii) U.S. application Ser. No. 09/298,251 filed Apr. 23, 1999, now U.S. Pat. No. 6,286,134, and entitled “INSTRUCTION SELECTION IN A MULTI-PLATFORM ENVIRONMENT” which is hereby incorporated by reference.
US Referenced Citations (5)
Non-Patent Literature Citations (1)
Entry |
Rayside et al., “Change and Adaptive Maintenance Detection in Java Software Systems,” Proceedings, IEEE Fifth Working Conference on Reverse Engineering, 1998, pp. 10-19. |