US20020083416A1 - Automatic stub/adapter generator - Google Patents
Automatic stub/adapter generator Download PDFInfo
- Publication number
- US20020083416A1 US20020083416A1 US10/080,793 US8079302A US2002083416A1 US 20020083416 A1 US20020083416 A1 US 20020083416A1 US 8079302 A US8079302 A US 8079302A US 2002083416 A1 US2002083416 A1 US 2002083416A1
- Authority
- US
- United States
- Prior art keywords
- adapter
- bytecode
- computer
- code
- java
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Definitions
- the invention relates generally to computer systems. More particularly, methods and apparatus for automatically generating stubs in a multi-platform environment are disclosed.
- JavaTM programming language is an object-oriented high level programming language developed by Sun Microsystems and designed to be portable enough to be executed on a wide range of computers ranging from small personal computers up to supercomputers.
- Computer programs written in Java may be compiled into virtual machine instructions for execution by a Java virtual machine.
- the Java virtual machine is an interpreter that decodes and executes the virtual machine instructions.
- the virtual machine instructions for the Java virtual machine are bytecodes, meaning they include one or more bytes.
- the bytecodes are stored in a particular file format called a “class file” that includes bytecodes for methods of a class.
- the class file includes a symbol table as well as other ancillary information.
- a computer program embodied as Java bytecodes in one or more class files is platform independent.
- the computer program may be executed, unmodified, on any computer that is able to run an implementation of the Java virtual machine.
- the Java virtual machine is a software emulator of a “generic” computer that is a major factor in allowing computer programs for the Java virtual machine to be platform independent.
- the Java virtual machine is commonly implemented as a software interpreter.
- Conventional interpreters decode and execute the virtual machine instructions of an interpreted program one instruction at a time during execution.
- Compilers decode source code into native machine instructions prior to execution so that decoding is not performed during execution. Because conventional interpreters decode each instruction before it is executed repeatedly each time the instruction is encountered, execution of interpreted programs is typically quite a bit slower than compiled programs because the native machine instructions of compiled programs can be executed on the native machine or computer system without necessitating decoding. Therefore, whenever performance is a significant factor, it is desirable to decode source code using the compiler instead of the interpreter.
- an adapter translates the execution stack used by the platform dependent interpreter to a form that is consistent with what the platform dependent compiler expects.
- a platform specific adapter must be constructed for each platform on which the virtual machine runs. This typically requires a user to generate an adapter using, for example, assembler language or C++ code, for each platform. Coding an adapter for each platform on which the virtual machine runs is quite time consuming and prone to error.
- Java virtual machine will be written in a programming language other than the Java programming language (e.g., the C++ programming language). Therefore, execution of a Java program may involve execution of functions written in multiple programming languages. Additionally, the bytecodes themselves may call native functions (e.g., system specific functions for input/output) that are not written in the Java programming language. It is therefore common for an executing Java program to entail the execution of functions that were written in multiple programming languages.
- a RPC Remote Procedure Call
- a procedure call is also sometimes known as a function call or a subroutine call.
- the requesting program is a client and the service-providing program is the server.
- an RPC is a synchronous operation requiring the requesting program to be suspended until the results of the remote procedure are returned.
- lightweight processes or threads that share the same address space allows multiple RPCs to be performed concurrently.
- a stub is included in the compiled code that acts as the representative of the remote procedure code.
- a stub is a small program routine that substitutes for a longer program, possibly to be loaded later or that is located remotely.
- RPCs Remote Procedure Calls
- the stub accepts the request and then forwards it (through another program) to the remote procedure. When that procedure has completed its service, it returns the results or other status to the stub that passes it back to the program that made the request.
- embodiments of the present invention provide innovative systems and methods for automatically generating a library of platform dependent adapters and stubs for use in a virtual machine.
- An apparatus for executing a bytecode in runtime system and automatically providing an adapter or a stub includes a bytecode source coupled to an interpreter unit.
- the interpreter being used to interpret the bytecode.
- the interpreter is in turn coupled to the runtime system which executes the interpreted bytecode.
- the bytecode source is also coupled to a compiler that is used to compile the bytecode.
- the compiler in turn, is coupled to the runtime system that executes the compiled bytecode.
- the apparatus also includes an adapter/stub generator unit coupled to the compiler that provides on demand an adapter or a stub to the runtime system as needed.
- a library coupled to the runtime system is used to store adapters and stubs which are then retrieved as needed by the runtime system.
- a computer program product that implements an apparatus for processing a bytecode in a runtime system.
- the program product includes computer code that interprets a received bytecode and passes the interpreted bytecode to the runtime system to be executed.
- the computer code also compiles the received bytecode and passes the compiled bytecode to the runtime system for execution.
- the computer code also generates an adapter when requested by the runtime system in order to execute the bytecode.
- a computer implemented method for processing a bytecode in a runtime environment is disclosed. If an adapter is required in order to process the bytecode a determination is made whether or not the required adapter is in an adapter library. If the required adapter is not in the adapter library, the an adapter generator builds the adapter and stores it in the library which then provides the adapter to the runtime system which then executes the bytecode.
- FIG. 1 illustrates an example of a computer system that may be utilized to execute the software of an embodiment of the invention.
- FIG. 2 shows a system block diagram of the computer system of FIG. 1.
- FIG. 3 shows how a Java source code program is executed.
- FIG. 4 shows the components of an implementation of a Java runtime system.
- FIG. 5 illustrates frames for functions that are stored on an execution stack.
- FIG. 6 shows an embodiment of the invention in a Java Virtual Machine.
- FIG. 7 shows a flowchart for adapter/stub usage in a Java Virtual Machine.
- FIG. 8 shows a flowchart for generating an adapter/stub.
- Function A software routine (also called a subroutine, procedure, member function, and method).
- Frame (or activation frame, activation record)—A record that is stored on the execution stack for a function to store information for execution of the function, such information may include state variables, local variables and an operand stack.
- Execution stack A stack utilized during program execution to store frames for functions in their sequential calling order.
- a function (“callee”)
- a frame for the function is pushed on the execution stack.
- the function terminates, the frame is popped off the stack and the function (“caller”) for the frame on the top of the execution stack resumes execution.
- Operand stack A stack utilized to store operands for use by machine instructions during execution.
- External code Computer code that is written in a programming language other than a specific programming language (e.g., the Java programming language).
- the Java virtual machine may be written in the C++ programming language and the Java virtual machine could be deemed external code in reference to the Java code of a program that is being interpreted (external code include native methods).
- Native methods Functions that are written in a programming language other than the Java programming language. Native methods may be called by a Java program that causes them to be dynamically loaded and executed. Additionally, native methods may call functions written in the Java programming language.
- FIG. 1 illustrates an example of a computer system that may be used to execute the software of an embodiment of the invention.
- FIG. 1 shows a computer system 1 that includes a display 3 , screen 5 , cabinet 7 , keyboard 9 , and mouse 11 .
- Mouse 11 may have one or more buttons for interacting with a graphical user interface.
- Cabinet 7 houses a CD-ROM drive 13 , system memory and a hard drive (see FIG. 2) which may be utilized to store and retrieve software programs incorporating computer code that implements the invention, data for use with the invention, and the like.
- the CD-ROM 15 is shown as an exemplary computer readable storage medium, other computer readable storage media including floppy disk, tape, flash memory, system memory, and hard drive may be utilized.
- a data signal embodied in a carrier wave (e.g., in a network including the Internet) may be the computer readable storage medium.
- FIG. 2 shows a system block diagram of computer system 1 used to execute the software of an embodiment of the invention.
- computer system 1 includes monitor 3 and keyboard 9 , and mouse 11 .
- Computer system 1 further includes subsystems such as a central processor 51 , system memory 53 , fixed storage 55 (e.g., hard drive), removable storage 57 (e.g., CD-ROM drive), display adapter 59 , sound card 61 , speakers 63 , and network interface 65 .
- Other computer systems suitable for use with the invention may include additional or fewer subsystems.
- another computer system could include more than one processor 51 (i.e., a multi-processor system), or a cache memory.
- the system bus architecture of computer system 1 is represented by arrows 67 .
- arrows 67 are illustrative of any interconnection scheme serving to link the subsystems.
- a local bus could be utilized to connect the central processor to the system memory and display adapter.
- Computer system 1 shown in FIG. 2 is but an example of a computer system suitable for use with the invention. Other computer architectures having different configurations of subsystems may also be utilized.
- FIG. 3 shows a progression of a simple piece of Java source code through execution by an interpreter in the Java virtual machine.
- Java source code 101 includes the classic Hello World program written in Java.
- the source code is then input into a bytecode compiler 103 that compiles the source code into bytecodes.
- the bytecodes are virtual machine instructions as they will be executed by a software emulated computer. Typically, virtual machine instructions are generic (i.e., not designed for any specific microprocessor or computer architecture) but this is not required.
- the bytecode compiler outputs a Java class file 105 that includes the bytecodes for the Java program.
- the Java class file is input into a Java virtual machine 107 .
- the Java virtual machine is an interpreter that decodes and executes the bytecodes in the Java class file.
- the Java virtual machine is an interpreter, but is commonly referred to as a virtual machine as it emulates a microprocessor or computer architecture in software (e.g., the microprocessor or computer architecture that may not exist in hardware).
- FIG. 4 shows the components of an implementation of a Java runtime system.
- Implementations of the Java virtual machine are known as Java runtime systems.
- a Java runtime system 201 may receive input of Java class files 203 , standard built-in Java classes 205 and native methods 207 in order to execute a Java program.
- the standard built-in Java classes may be classes for objects such as threads, strings and the like.
- the native methods may be written in programming languages other than the Java programming language.
- the native methods are typically stored in dynamic link libraries (DLLs) or shared libraries.
- DLLs dynamic link libraries
- the Java runtime system may also interface with an operating system 209 .
- input/output functions may be handled by the operating system, including providing the Java runtime system with interfaces to Java class files 203 , standard built-in Java classes 205 and native methods 207 .
- a dynamic class loader and verifier 211 loads Java class files 203 and standard built-in Java classes 205 via operating system 209 into a memory 213 . Additionally, the dynamic class loader and verifier may verify the correctness of the bytecodes in the Java class files, reporting any errors that are detected.
- a native method linker 215 links in native methods 207 via operating system 209 into the Java runtime system and stores the native methods in memory 213 .
- memory 213 may include a class and method area for the Java classes and a native method area for native methods.
- the class and method area in memory 213 may be stored in a garbage collected heap. As new objects are created, they are stored in the garbage collected heap.
- the Java runtime system not the application, is responsible for reclaiming memory in the garbage collected heap when space is no longer being utilized.
- Execution engine 217 At the heart of the Java runtime system shown in FIG. 4 is an execution engine 217 .
- the execution engine carries out the instructions stored in memory 213 and may be implemented in software, hardware or a combination of the two.
- the execution engine supports object-oriented applications and conceptually, there are multiple execution engines running concurrently, one for each Java thread.
- Execution engine 217 may also utilize support code 221 .
- the support code may provide functionality relating to exceptions, threads, security, and the like.
- FIG. 5 illustrates frames for functions that are stored on an execution stack.
- An execution stack 301 is shown having a frame 303 on the top of the execution stack and frames 305 and 307 stored below frame 303 , respectively.
- a stack pointer SP points to the top of the execution stack while a frame pointer FP points to a frame pointer in the frame on the top of execution stack 301 .
- Each frame is shown to include state variables, local variables and an operand stack for the function corresponding to the frame. Additionally, the last item stored in the frame is a frame pointer which points to the frame pointer in the frame below the current frame on the execution stack as shown by arrows 309 and 311 .
- the system When a function calls another function, the system first pushes the return address for the current function on execution stack 301 and then pushes a new frame for the recently called function. In this manner, when the new function returns, the system is able to pop the frame at the top of the execution stack and then pop the return address off the execution stack and set the program counter equal to this return address so that execution of the calling function may resume. Accordingly, that is the reason frames 305 and 307 include return addresses and the active frame 303 does not include a return address. However, if the function corresponding to frame 303 calls another function, the return address would be pushed on execution stack 301 before the frame for the new function is pushed on the execution stack.
- the frame pointers allow the system to accurately traverse the frames on the execution stack.
- stack pointer SP and frame pointer FP delineate the frame on the top of the execution stack.
- the frame pointer in frame 303 specifies the next frame on the execution stack.
- the address just below the frame pointer in frame 303 is the beginning of the next frame on the execution stack and the contents of the frame pointer of frame 303 specify the last item in the next frame on the execution stack which is frame 305 .
- the frame pointer in frame 305 specifies the location of the next frame on the execution stack. Therefore, the chain of frame pointers allows the system to traverse the frames on the execution stack (e.g., when the frames are popped off the execution stack).
- FIG. 5 shows an implementation of an execution stack
- the invention is not limited to the implementation shown.
- the execution stack is shown as growing upwards in memory, however, it should be clear that the stack may also grow downwards in memory.
- the information stored in each frame may vary depending upon the implementation.
- the Java programming language an object-oriented language
- Java virtual machine or bytecode interpreter
- the Java virtual machine is designed to convert the bytecode into instructions that can be executed by the actual hardware processor.
- bytecode can be recompiled at each particular system platform by, in some cases, a just-in-time (JIT) compiler.
- JIT just-in-time
- FIG. 6 illustrates an apparatus that includes a Java Virtual Machine (JVM) 600 in accordance with an embodiment of the invention.
- JIT just-in-time
- a just-in-time (JIT) compiler is a program that turns Java bytecode into instructions that can be sent directly to the processor.
- the Java source language statements are compiled by the Java compiler into Java bytecode rather than into code that contains instructions that match a particular hardware platform's processor (for example, an Intel Pentium microprocessor or an IBM System/390 processor).
- the Java bytecode is platform-independent code that can be sent to any platform and run on that platform.
- interpreter 606 when bytecodes are provided to a JIT compiler provided by a compiler 602 , the compilation of methods contained in bytecodes 604 is delayed until the methods are about to be executed.
- bytecodes 604 are provided to an interpreter 606 , bytecodes 604 are read into interpreter 606 one bytecode at a time.
- Interpreter 606 then loads parameters corresponding to the operations defined by the bytecode into the execution stack 500 . Once loaded, the interpreter 606 performs the operation defined by the bytecode 604 . That is, interpreter 606 “interprets” bytecodes 604 , as will be appreciated by those skilled in the art.
- interpreter 606 processes bytecodes 604 and performs operations associated with bytecodes 604 substantially continuously.
- runtime system 608 When a method is invoked by another method or, if the method is interpreted, runtime system 608 obtains the method in the form of a sequence of bytecodes 604 , which may be directly executed by interpreter 606 . If, on the other hand, the method which is invoked is a compiled method which has not been compiled, runtime system 608 also obtains the method in the form of a sequence of bytecodes 604 , then may go on to activate the platform specific compiler provided by the compiler 602 . The compiler 602 then generates machine instructions from bytecodes 604 , and the resulting machine-language instructions may be executed directly by the target platform operating system 610 . In general, the machine-language instructions are discarded when virtual machine 600 terminates.
- the operation of virtual machines or, more particularly, JavaTM virtual machines is described in more detail in The JavaTM Virtual Machine Specification by Tim Lindholm and Frank Yellin (ISBN 0-201-63452-X), which is incorporated herein by reference.
- Compilers In order to compile a bytecode or sequence of bytecodes in the compiler 602 , however, a finite amount of compilation time is required. Compilers decode source code into native machine instructions prior to execution so that decoding is not performed during execution. Because conventional interpreters decode each source code instruction before it is executed repeatedly each time the instruction is encountered, execution of interpreted programs is typically quite a bit slower than compiled programs because the native machine instructions of compiled programs can be executed on the native machine or computer system without necessitating source code decoding. Therefore, whenever performance is a significant factor, it is desirable to decode source code using the compiler instead of the interpreter.
- a bytecode or sequence of bytecodes is received by the virtual machine 600 , a determination is made whether or not the bytecode or sequence of bytecodes is to be interpreted by the interpreter or compiled by the compiler.
- a platform specific adapter In the case where a received bytecode or sequence of bytecodes is to be processed by executing compiled code, for example, and the previous bytecode or sequence of bytecodes had been processed by the interpreter, a platform specific adapter must be provided.
- the platform specific interpreter to compiled-code (I/C) adapter is used to translate the execution stack 500 used by the interpreter to one that can be used by the compiled code.
- the adapter may update the state of other components in the system.
- a compiled-code to interpreter (C/I) adapter must be provided to appropriately translate the execution stack 500 to one that can be used by the interpreter.
- the adapter may update the state of other components in the system.
- an I/C adapter or a C/I adapter When either an I/C adapter or a C/I adapter is created, it is stored in a library 614 coupled to the compiler 602 and the runtime system 608 . In this way, whenever it is determined that a particular adapter is required, then the library 614 is queried and if that particular adapter is not present, then it is created. In order to create a particular platform specific adapter, various platform dependent inputs are required. In one embodiment, these inputs include, for example, known type of caller, known type of callee, known parameter number and types for callee, calling convention, etc.
- FIG. 7 is a flowchart detailing a process 700 for processing a bytecode or sequence of bytecodes in accordance with an embodiment of the invention.
- the process 700 begins at 702 when a bytecode or sequence of bytecodes is received.
- a determination at 704 is made whether the bytecode or sequence of bytecodes will be interpreted or processed by executing compiled code. If the bytecode or sequence of bytecodes is to be processed by executing compiled code, then a determination is made at 708 if an I/C adapter is required. If the adapter is not required, then the bytecode or sequence of bytecodes is processed by executing compiled code at 710 the results of which is returned at 711 .
- the adapter is required, then a determination is made at 712 if the required adapter is stored in the library. If the required adapter is not stored in the library, then the required adapter is generated at 714 otherwise the required adapter is retrieved from the library at 716 . In either case, the adapter is compiled at 718 after which the adapter is stored in the library at 720 and preparation is made to execute the compiled code at 722 . Once the preparation is complete, the bytecode or sequence of bytecodes is processed by executing compiled bytecode at 710 .
- a determination at 726 is made whether or not the C/I adapter is required. If the adapter is not required, then the bytecode or sequence of bytecodes is interpreted at 728 the result of which is returned at 730 . If, however, the adapter is required, then a determination is made at 732 if the required adapter is stored in the library. If the required adapter is not stored in the library, then the required adapter is generated at 734 otherwise the required adapter is retrieved from the library at 736 . In either case, the adapter is compiled at 738 after which adapter is stored in the library at 740 . At 742 preparation is made to interpret the bytecode(s) after which the bytecode(s) is interpreted at 728 the result of which is returned at 730 .
- FIG. 8 is a flowchart detailing a process 800 for generating an adapter/stub in accordance with the embodiment of the invention.
- the process 800 begins at 802 by identifying the parameters for the call to compiled code and pertinent machine state. Next, the input parameters and machine state are mapped to the inputs of the compiled code call at 804 . At 806 , the machine state and return values are mapped to the return point of the interpreter to compiled-code adapter. At 808 , the adapter/stub representation is provided to the compiler for compilation and generation of object code.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Devices For Executing Special Programs (AREA)
- Stored Programmes (AREA)
Abstract
Systems and methods for automatically providing an adapter or a stub in a runtime environment are provided. An adapter generator is provided with input parameters that are in turn processed and input to a compiler. The compiler, in turn, is coupled to an adapter library used to store the generated adapters. The adapter library, in turn, provides adapters, on demand to a runtime system when executing a bytecode, or a series of bytecodes.
Description
- This application is a Continuation Application of U.S. Patent Application entitled, “AUTOMATIC STUB/ADAPTER GENERATOR” by Click et. al. filed Apr. 23, 1999 having Ser. No. 09/298,637 which is incorporated by reference in its entirety.
- 1. Field of Invention
- The invention relates generally to computer systems. More particularly, methods and apparatus for automatically generating stubs in a multi-platform environment are disclosed.
- 2. Description of Relevant Art
- The Java™ programming language is an object-oriented high level programming language developed by Sun Microsystems and designed to be portable enough to be executed on a wide range of computers ranging from small personal computers up to supercomputers. Computer programs written in Java (and other languages) may be compiled into virtual machine instructions for execution by a Java virtual machine. In general the Java virtual machine is an interpreter that decodes and executes the virtual machine instructions.
- The virtual machine instructions for the Java virtual machine are bytecodes, meaning they include one or more bytes. The bytecodes are stored in a particular file format called a “class file” that includes bytecodes for methods of a class. In addition to the bytecodes for methods of a class, the class file includes a symbol table as well as other ancillary information.
- A computer program embodied as Java bytecodes in one or more class files is platform independent. The computer program may be executed, unmodified, on any computer that is able to run an implementation of the Java virtual machine. The Java virtual machine is a software emulator of a “generic” computer that is a major factor in allowing computer programs for the Java virtual machine to be platform independent.
- The Java virtual machine is commonly implemented as a software interpreter. Conventional interpreters decode and execute the virtual machine instructions of an interpreted program one instruction at a time during execution. Compilers, on the other hand, decode source code into native machine instructions prior to execution so that decoding is not performed during execution. Because conventional interpreters decode each instruction before it is executed repeatedly each time the instruction is encountered, execution of interpreted programs is typically quite a bit slower than compiled programs because the native machine instructions of compiled programs can be executed on the native machine or computer system without necessitating decoding. Therefore, whenever performance is a significant factor, it is desirable to decode source code using the compiler instead of the interpreter. In order to accomplish this, however, what is referred to as an adapter translates the execution stack used by the platform dependent interpreter to a form that is consistent with what the platform dependent compiler expects. Unfortunately, since the code generated by the platform dependent compiler may store and communicate information in a manner different than the interpreter, a platform specific adapter must be constructed for each platform on which the virtual machine runs. This typically requires a user to generate an adapter using, for example, assembler language or C++ code, for each platform. Coding an adapter for each platform on which the virtual machine runs is quite time consuming and prone to error.
- Typically, the Java virtual machine will be written in a programming language other than the Java programming language (e.g., the C++ programming language). Therefore, execution of a Java program may involve execution of functions written in multiple programming languages. Additionally, the bytecodes themselves may call native functions (e.g., system specific functions for input/output) that are not written in the Java programming language. It is therefore common for an executing Java program to entail the execution of functions that were written in multiple programming languages. A RPC (Remote Procedure Call) is a protocol that one program can use to request a service from a program located in another computer in a network without having to understand network details. A procedure call is also sometimes known as a function call or a subroutine call. Using a client server model, the requesting program is a client and the service-providing program is the server. As in a regular or local procedure call, an RPC is a synchronous operation requiring the requesting program to be suspended until the results of the remote procedure are returned. However, the use of lightweight processes or threads that share the same address space allows multiple RPCs to be performed concurrently.
- When program statements that use RPC are compiled into an executable program, a stub is included in the compiled code that acts as the representative of the remote procedure code. A stub is a small program routine that substitutes for a longer program, possibly to be loaded later or that is located remotely. For example, a program that uses Remote Procedure Calls (RPCs) is compiled with stubs that substitute for the program that provides a requested procedure. The stub accepts the request and then forwards it (through another program) to the remote procedure. When that procedure has completed its service, it returns the results or other status to the stub that passes it back to the program that made the request.
- As with the adapter, in conventional virtual machines, a manually coded stub library is required for every platform on which the virtual machine runs. Coding a stub for every RPC for each platform on which the virtual machine runs is quite time consuming and prone to error.
- Accordingly, there is a need for techniques for automatically generating a library of platform dependent adapters. Additionally, there is a need to provide techniques for automatically providing a library of platform dependent stubs for each platform on which the virtual machine runs.
- In general, embodiments of the present invention provide innovative systems and methods for automatically generating a library of platform dependent adapters and stubs for use in a virtual machine.
- An apparatus for executing a bytecode in runtime system and automatically providing an adapter or a stub is disclosed. The apparatus includes a bytecode source coupled to an interpreter unit. The interpreter being used to interpret the bytecode. The interpreter is in turn coupled to the runtime system which executes the interpreted bytecode. The bytecode source is also coupled to a compiler that is used to compile the bytecode. The compiler, in turn, is coupled to the runtime system that executes the compiled bytecode. The apparatus also includes an adapter/stub generator unit coupled to the compiler that provides on demand an adapter or a stub to the runtime system as needed.
- In a preferred embodiment, a library coupled to the runtime system is used to store adapters and stubs which are then retrieved as needed by the runtime system.
- In another embodiment, a computer program product that implements an apparatus for processing a bytecode in a runtime system is disclosed. The program product includes computer code that interprets a received bytecode and passes the interpreted bytecode to the runtime system to be executed. The computer code also compiles the received bytecode and passes the compiled bytecode to the runtime system for execution. The computer code also generates an adapter when requested by the runtime system in order to execute the bytecode.
- In another embodiment, a computer implemented method for processing a bytecode in a runtime environment is disclosed. If an adapter is required in order to process the bytecode a determination is made whether or not the required adapter is in an adapter library. If the required adapter is not in the adapter library, the an adapter generator builds the adapter and stores it in the library which then provides the adapter to the runtime system which then executes the bytecode.
- Other features and advantages of the invention will become readily apparent upon review of the following detailed description in association with the accompanying drawings.
- FIG. 1 illustrates an example of a computer system that may be utilized to execute the software of an embodiment of the invention.
- FIG. 2 shows a system block diagram of the computer system of FIG. 1.
- FIG. 3 shows how a Java source code program is executed.
- FIG. 4 shows the components of an implementation of a Java runtime system.
- FIG. 5 illustrates frames for functions that are stored on an execution stack.
- FIG. 6 shows an embodiment of the invention in a Java Virtual Machine.
- FIG. 7 shows a flowchart for adapter/stub usage in a Java Virtual Machine.
- FIG. 8 shows a flowchart for generating an adapter/stub.
- Definitions
- Function—A software routine (also called a subroutine, procedure, member function, and method).
- Frame (or activation frame, activation record)—A record that is stored on the execution stack for a function to store information for execution of the function, such information may include state variables, local variables and an operand stack.
- Execution stack—A stack utilized during program execution to store frames for functions in their sequential calling order. When a function (“callee”) is called, a frame for the function is pushed on the execution stack. Subsequently, when the function terminates, the frame is popped off the stack and the function (“caller”) for the frame on the top of the execution stack resumes execution.
- Operand stack—A stack utilized to store operands for use by machine instructions during execution.
- External code—Computer code that is written in a programming language other than a specific programming language (e.g., the Java programming language). For example, the Java virtual machine may be written in the C++ programming language and the Java virtual machine could be deemed external code in reference to the Java code of a program that is being interpreted (external code include native methods).
- Native methods—Functions that are written in a programming language other than the Java programming language. Native methods may be called by a Java program that causes them to be dynamically loaded and executed. Additionally, native methods may call functions written in the Java programming language.
- In the description that follows, the present invention will be described in reference to a preferred embodiment that implements an execution stack for a Java virtual machine that executes a Java program (e.g., bytecodes). In particular, examples will be described in which the Java virtual machine is written in the C++ programming language. However, the invention is not limited to any particular language, computer architecture, or specific implementation. Therefore, the description of the embodiments that follow is for purposes of illustration and not limitation.
- FIG. 1 illustrates an example of a computer system that may be used to execute the software of an embodiment of the invention. FIG. 1 shows a
computer system 1 that includes adisplay 3,screen 5,cabinet 7,keyboard 9, andmouse 11.Mouse 11 may have one or more buttons for interacting with a graphical user interface.Cabinet 7 houses a CD-ROM drive 13, system memory and a hard drive (see FIG. 2) which may be utilized to store and retrieve software programs incorporating computer code that implements the invention, data for use with the invention, and the like. Although the CD-ROM 15 is shown as an exemplary computer readable storage medium, other computer readable storage media including floppy disk, tape, flash memory, system memory, and hard drive may be utilized. Additionally, a data signal embodied in a carrier wave (e.g., in a network including the Internet) may be the computer readable storage medium. - FIG. 2 shows a system block diagram of
computer system 1 used to execute the software of an embodiment of the invention. As in FIG. 1,computer system 1 includesmonitor 3 andkeyboard 9, andmouse 11.Computer system 1 further includes subsystems such as acentral processor 51,system memory 53, fixed storage 55 (e.g., hard drive), removable storage 57 (e.g., CD-ROM drive),display adapter 59,sound card 61,speakers 63, andnetwork interface 65. Other computer systems suitable for use with the invention may include additional or fewer subsystems. For example, another computer system could include more than one processor 51 (i.e., a multi-processor system), or a cache memory. - The system bus architecture of
computer system 1 is represented byarrows 67. However, these arrows are illustrative of any interconnection scheme serving to link the subsystems. For example, a local bus could be utilized to connect the central processor to the system memory and display adapter.Computer system 1 shown in FIG. 2 is but an example of a computer system suitable for use with the invention. Other computer architectures having different configurations of subsystems may also be utilized. - Typically, computer programs written in the Java programming language are compiled into bytecodes or Java virtual machine instructions that are then executed by a Java virtual machine. The bytecodes are stored in class files that are input into the Java virtual machine for interpretation. FIG. 3 shows a progression of a simple piece of Java source code through execution by an interpreter in the Java virtual machine.
-
Java source code 101 includes the classic Hello World program written in Java. The source code is then input into abytecode compiler 103 that compiles the source code into bytecodes. The bytecodes are virtual machine instructions as they will be executed by a software emulated computer. Typically, virtual machine instructions are generic (i.e., not designed for any specific microprocessor or computer architecture) but this is not required. The bytecode compiler outputs aJava class file 105 that includes the bytecodes for the Java program. - The Java class file is input into a Java
virtual machine 107. The Java virtual machine is an interpreter that decodes and executes the bytecodes in the Java class file. The Java virtual machine is an interpreter, but is commonly referred to as a virtual machine as it emulates a microprocessor or computer architecture in software (e.g., the microprocessor or computer architecture that may not exist in hardware). - FIG. 4 shows the components of an implementation of a Java runtime system. Implementations of the Java virtual machine are known as Java runtime systems. A
Java runtime system 201 may receive input of Java class files 203, standard built-inJava classes 205 andnative methods 207 in order to execute a Java program. The standard built-in Java classes may be classes for objects such as threads, strings and the like. The native methods may be written in programming languages other than the Java programming language. The native methods are typically stored in dynamic link libraries (DLLs) or shared libraries. - The Java runtime system may also interface with an
operating system 209. For example, input/output functions may be handled by the operating system, including providing the Java runtime system with interfaces to Java class files 203, standard built-inJava classes 205 andnative methods 207. - A dynamic class loader and verifier211 loads Java class files 203 and standard built-in
Java classes 205 viaoperating system 209 into amemory 213. Additionally, the dynamic class loader and verifier may verify the correctness of the bytecodes in the Java class files, reporting any errors that are detected. - A
native method linker 215 links innative methods 207 viaoperating system 209 into the Java runtime system and stores the native methods inmemory 213. As shown,memory 213 may include a class and method area for the Java classes and a native method area for native methods. The class and method area inmemory 213 may be stored in a garbage collected heap. As new objects are created, they are stored in the garbage collected heap. The Java runtime system, not the application, is responsible for reclaiming memory in the garbage collected heap when space is no longer being utilized. - At the heart of the Java runtime system shown in FIG. 4 is an
execution engine 217. The execution engine carries out the instructions stored inmemory 213 and may be implemented in software, hardware or a combination of the two. The execution engine supports object-oriented applications and conceptually, there are multiple execution engines running concurrently, one for each Java thread.Execution engine 217 may also utilizesupport code 221. The support code may provide functionality relating to exceptions, threads, security, and the like. - As a Java program executes, functions are sequentially called within each thread. For each thread there is an execution stack which stores frames for each of the functions that have not completed execution. A frame stores information for execution of the function, such information may include state variables, local variables and an operand stack. As a function is called, a frame for the function is pushed on the execution stack. When the function terminates, the function's frame is popped off the execution stack. Accordingly, only the function corresponding to the frame on the top of the execution stack is active, the functions that correspond to frames below the top of the execution stack have had their execution suspended until the function they called returns (i.e., terminates).
- FIG. 5 illustrates frames for functions that are stored on an execution stack. An
execution stack 301 is shown having aframe 303 on the top of the execution stack and frames 305 and 307 stored belowframe 303, respectively. A stack pointer SP points to the top of the execution stack while a frame pointer FP points to a frame pointer in the frame on the top ofexecution stack 301. - Each frame is shown to include state variables, local variables and an operand stack for the function corresponding to the frame. Additionally, the last item stored in the frame is a frame pointer which points to the frame pointer in the frame below the current frame on the execution stack as shown by
arrows - When a function calls another function, the system first pushes the return address for the current function on
execution stack 301 and then pushes a new frame for the recently called function. In this manner, when the new function returns, the system is able to pop the frame at the top of the execution stack and then pop the return address off the execution stack and set the program counter equal to this return address so that execution of the calling function may resume. Accordingly, that is the reason frames 305 and 307 include return addresses and theactive frame 303 does not include a return address. However, if the function corresponding to frame 303 calls another function, the return address would be pushed onexecution stack 301 before the frame for the new function is pushed on the execution stack. - The frame pointers allow the system to accurately traverse the frames on the execution stack. For example, stack pointer SP and frame pointer FP delineate the frame on the top of the execution stack. Furthermore, the frame pointer in
frame 303 specifies the next frame on the execution stack. The address just below the frame pointer inframe 303 is the beginning of the next frame on the execution stack and the contents of the frame pointer offrame 303 specify the last item in the next frame on the execution stack which isframe 305. Similarly, the frame pointer inframe 305 specifies the location of the next frame on the execution stack. Therefore, the chain of frame pointers allows the system to traverse the frames on the execution stack (e.g., when the frames are popped off the execution stack). - Although FIG. 5 shows an implementation of an execution stack, the invention is not limited to the implementation shown. For example, the execution stack is shown as growing upwards in memory, however, it should be clear that the stack may also grow downwards in memory. Furthermore, the information stored in each frame may vary depending upon the implementation.
- More recently, the Java programming language, an object-oriented language, has introduced the possibility of compiling output (called bytecode) that can run on any computer system platform for which a Java virtual machine (or bytecode interpreter) is provided. The Java virtual machine is designed to convert the bytecode into instructions that can be executed by the actual hardware processor. Using this virtual machine, rather than being interpreted one instruction at a time, bytecode can be recompiled at each particular system platform by, in some cases, a just-in-time (JIT) compiler.
- FIG. 6 illustrates an apparatus that includes a Java Virtual Machine (JVM)600 in accordance with an embodiment of the invention. In the Java programming language and environment, a just-in-time (JIT) compiler is a program that turns Java bytecode into instructions that can be sent directly to the processor. After a Java program has been written, the Java source language statements are compiled by the Java compiler into Java bytecode rather than into code that contains instructions that match a particular hardware platform's processor (for example, an Intel Pentium microprocessor or an IBM System/390 processor). The Java bytecode is platform-independent code that can be sent to any platform and run on that platform.
- More particularly, when bytecodes are provided to a JIT compiler provided by a
compiler 602, the compilation of methods contained inbytecodes 604 is delayed until the methods are about to be executed. Whenbytecodes 604 are provided to aninterpreter 606,bytecodes 604 are read intointerpreter 606 one bytecode at a time.Interpreter 606 then loads parameters corresponding to the operations defined by the bytecode into the execution stack 500. Once loaded, theinterpreter 606 performs the operation defined by thebytecode 604. That is,interpreter 606 “interprets”bytecodes 604, as will be appreciated by those skilled in the art. In general,interpreter 606 processes bytecodes 604 and performs operations associated withbytecodes 604 substantially continuously. - When a method is invoked by another method or, if the method is interpreted,
runtime system 608 obtains the method in the form of a sequence ofbytecodes 604, which may be directly executed byinterpreter 606. If, on the other hand, the method which is invoked is a compiled method which has not been compiled,runtime system 608 also obtains the method in the form of a sequence ofbytecodes 604, then may go on to activate the platform specific compiler provided by thecompiler 602. Thecompiler 602 then generates machine instructions frombytecodes 604, and the resulting machine-language instructions may be executed directly by the targetplatform operating system 610. In general, the machine-language instructions are discarded whenvirtual machine 600 terminates. The operation of virtual machines or, more particularly, Java™ virtual machines, is described in more detail in The Java™ Virtual Machine Specification by Tim Lindholm and Frank Yellin (ISBN 0-201-63452-X), which is incorporated herein by reference. - In order to compile a bytecode or sequence of bytecodes in the
compiler 602, however, a finite amount of compilation time is required. Compilers decode source code into native machine instructions prior to execution so that decoding is not performed during execution. Because conventional interpreters decode each source code instruction before it is executed repeatedly each time the instruction is encountered, execution of interpreted programs is typically quite a bit slower than compiled programs because the native machine instructions of compiled programs can be executed on the native machine or computer system without necessitating source code decoding. Therefore, whenever performance is a significant factor, it is desirable to decode source code using the compiler instead of the interpreter. Therefore, when a bytecode or sequence of bytecodes is received by thevirtual machine 600, a determination is made whether or not the bytecode or sequence of bytecodes is to be interpreted by the interpreter or compiled by the compiler. In the case where a received bytecode or sequence of bytecodes is to be processed by executing compiled code, for example, and the previous bytecode or sequence of bytecodes had been processed by the interpreter, a platform specific adapter must be provided. The platform specific interpreter to compiled-code (I/C) adapter is used to translate the execution stack 500 used by the interpreter to one that can be used by the compiled code. In addition, the adapter may update the state of other components in the system. - Alternatively, when a previous bytecode or sequence of bytecodes has been processed by executing compiled code, possibly generated by the
compiler 602, and it is determined to be more execution efficient to interpret the current bytecode or sequence of bytecodes, then a compiled-code to interpreter (C/I) adapter must be provided to appropriately translate the execution stack 500 to one that can be used by the interpreter. In addition, the adapter may update the state of other components in the system. - When either an I/C adapter or a C/I adapter is created, it is stored in a
library 614 coupled to thecompiler 602 and theruntime system 608. In this way, whenever it is determined that a particular adapter is required, then thelibrary 614 is queried and if that particular adapter is not present, then it is created. In order to create a particular platform specific adapter, various platform dependent inputs are required. In one embodiment, these inputs include, for example, known type of caller, known type of callee, known parameter number and types for callee, calling convention, etc. - FIG. 7 is a flowchart detailing a
process 700 for processing a bytecode or sequence of bytecodes in accordance with an embodiment of the invention. Theprocess 700 begins at 702 when a bytecode or sequence of bytecodes is received. A determination at 704 is made whether the bytecode or sequence of bytecodes will be interpreted or processed by executing compiled code. If the bytecode or sequence of bytecodes is to be processed by executing compiled code, then a determination is made at 708 if an I/C adapter is required. If the adapter is not required, then the bytecode or sequence of bytecodes is processed by executing compiled code at 710 the results of which is returned at 711. If however, the adapter is required, then a determination is made at 712 if the required adapter is stored in the library. If the required adapter is not stored in the library, then the required adapter is generated at 714 otherwise the required adapter is retrieved from the library at 716. In either case, the adapter is compiled at 718 after which the adapter is stored in the library at 720 and preparation is made to execute the compiled code at 722. Once the preparation is complete, the bytecode or sequence of bytecodes is processed by executing compiled bytecode at 710. - After the results of the execution of the compiled bytecode (or bytecodes) is returned at711, a determination is made at 724 if more bytecodes are available. If more bytecodes are available, then control is passed to 704 and the bytecode(s) are received, otherwise, the
process 700 stops. - Returning to704, if it was determined that the received bytecode or sequence of bytecodes is to be interpreted, then a determination at 726 is made whether or not the C/I adapter is required. If the adapter is not required, then the bytecode or sequence of bytecodes is interpreted at 728 the result of which is returned at 730. If, however, the adapter is required, then a determination is made at 732 if the required adapter is stored in the library. If the required adapter is not stored in the library, then the required adapter is generated at 734 otherwise the required adapter is retrieved from the library at 736. In either case, the adapter is compiled at 738 after which adapter is stored in the library at 740. At 742 preparation is made to interpret the bytecode(s) after which the bytecode(s) is interpreted at 728 the result of which is returned at 730.
- After the results of the interpreted bytecode(s) is returned at730, a determination is made at 724 if more bytecodes are available. If more bytecodes are available, then control is passed to 704 and the bytecode(s) are received, otherwise, the
process 700 stops. - FIG. 8 is a flowchart detailing a
process 800 for generating an adapter/stub in accordance with the embodiment of the invention. Theprocess 800 begins at 802 by identifying the parameters for the call to compiled code and pertinent machine state. Next, the input parameters and machine state are mapped to the inputs of the compiled code call at 804. At 806, the machine state and return values are mapped to the return point of the interpreter to compiled-code adapter. At 808, the adapter/stub representation is provided to the compiler for compilation and generation of object code. - While the above is a complete description of preferred embodiments of the invention, there is alternatives, modifications, and equivalents may be used. It should be evident that the invention is equally applicable by making appropriate modifications to the embodiments described above. For example, the embodiments described have been in reference to an execution stack including Java frames, but the principles of the present invention may be readily applied to other systems and languages. Therefore, the above description should not be taken as limiting the scope of the invention that is defined by the meets and bounds of the impended claims along with their full scope of equivalents.
Claims (8)
1. In a computer system, a method for generating an adapter/stub, comprising:
identifying a machine state input parameter for a machine state;
identifying a call to compiled code input parameter for a call to compiled code;
mapping the machine state input parameter and the machine state to the call to compiled code input parameter; and
mapping the machine state and a return value to an exit point of an interpreter to compiled code adapter.
2. A method as recited in claim 1 , further comprising:
providing a stub representation to a compiler for compilation; and
generating object code based upon the compilation.
3. A computer program product that implements an apparatus for generating an adapter/stub, comprising:
computer code that identifies a machine state input parameter for a machine state;
computer code that identifies a call to compiled code input parameter for a call to compiled code;
computer code that maps the machine state input parameter and the machine state to the call to compiled code input parameter; and
computer code that maps the machine state and a return value to an exit point of an interpreter to compiled code adapter; and
a computer readable medium that stores the computer codes.
4. A computer program product as recited in claim 3 , further comprising:
computer code that provides a stub representation to a compiler for compilation; and
computer code that generates object code based upon the compilation.
5. The computer program product of claim 4 , 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.
6. In a computer system, an apparatus for processing a bytecode in a runtime environment, comprising:
means for receiving the bytecode;
means for determining if the bytecode is to be interpreted or executed;
if the bytecode is to be executed,
means for determining if an adapter is required in order to process the bytecode;
means for determining if the adapter is located in an adapter library if the adapter is required;
means for generating the adapter if it is determined that the required adapter is not in the library;
means for storing the generated adapter in the library;
means for providing the adapter to the runtime environment;
means for executing the bytecode;
if the bytecode is to be interpreted,
means for determining if the adapter is required; and
means for interpreting the bytecode when the adapter is not required; and
means for generating the adapter when the adapter is required.
7. A computer program product that processes a bytecode in a runtime environment, comprising:
computer code for receiving the bytecode;
computer code for determining if the bytecode is to be interpreted or executed;
if the bytecode is to be executed,
computer code for determining if an adapter is required in order to process the bytecode;
computer code for determining if the adapter is located in an adapter library if the adapter is required;
computer code for generating the adapter if it is determined that the required adapter is not in the library;
computer code for storing the generated adapter in the library;
computer code for providing the adapter to the runtime environment;
computer code for executing the bytecode;
if the bytecode is to be interpreted,
computer code for determining if the adapter is required; and
computer code for interpreting the bytecode when the adapter is not required;
computer code for generating the adapter when the adapter is required; and
a computer readable medium that stores the computer codes.
8. The computer program product of claim 7 , 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/080,793 US20020083416A1 (en) | 1999-04-23 | 2002-02-20 | Automatic stub/adapter generator |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US09/298,637 US6381737B1 (en) | 1999-04-23 | 1999-04-23 | Automatic adapter/stub generator |
US10/080,793 US20020083416A1 (en) | 1999-04-23 | 2002-02-20 | Automatic stub/adapter generator |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US09/298,637 Continuation US6381737B1 (en) | 1999-04-23 | 1999-04-23 | Automatic adapter/stub generator |
Publications (1)
Publication Number | Publication Date |
---|---|
US20020083416A1 true US20020083416A1 (en) | 2002-06-27 |
Family
ID=23151373
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US09/298,637 Expired - Lifetime US6381737B1 (en) | 1999-04-23 | 1999-04-23 | Automatic adapter/stub generator |
US10/080,793 Abandoned US20020083416A1 (en) | 1999-04-23 | 2002-02-20 | Automatic stub/adapter generator |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US09/298,637 Expired - Lifetime US6381737B1 (en) | 1999-04-23 | 1999-04-23 | Automatic adapter/stub generator |
Country Status (6)
Country | Link |
---|---|
US (2) | US6381737B1 (en) |
EP (1) | EP1046984A3 (en) |
JP (1) | JP2000347871A (en) |
CN (1) | CN1171147C (en) |
AU (1) | AU774467B2 (en) |
CA (1) | CA2306545A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030225973A1 (en) * | 2002-06-04 | 2003-12-04 | Isaak Garber | Two area stack |
US20050188343A1 (en) * | 2002-06-08 | 2005-08-25 | Koninklijke Philips Electronics N.V. | Operation of a java virtual machine |
US20060117305A1 (en) * | 2004-11-25 | 2006-06-01 | Nokia Corporation | Method for the secure interpretation of programs in electronic devices |
US20060129972A1 (en) * | 2004-11-30 | 2006-06-15 | Tyburski John C | Application developer and method for generating platform independent code |
US20070011669A1 (en) * | 2005-07-06 | 2007-01-11 | International Business Machines Corporation | Software migration |
US20130275955A1 (en) * | 2012-04-13 | 2013-10-17 | International Business Machines Corporation | Code profiling of executable library for pipeline parallelization |
US8949809B2 (en) | 2012-03-01 | 2015-02-03 | International Business Machines Corporation | Automatic pipeline parallelization of sequential code |
Families Citing this family (37)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10104043A1 (en) * | 2000-02-23 | 2001-08-30 | Ibm | Method and system for improving the use of in-built macro-languages makes it possible for existing applications to use languages other than their in-built macro-languages without changing an existing application. |
US6748396B2 (en) * | 2001-06-01 | 2004-06-08 | International Business Machines Corporation | Independent class loader for dynamic class loading |
US7315980B2 (en) * | 2002-03-21 | 2008-01-01 | International Business Machines Corporation | Method and apparatus for generating electronic document definitions |
US20040172614A1 (en) * | 2003-02-28 | 2004-09-02 | Bea Systems, Inc. | Dynamic code generation method |
US7472401B2 (en) * | 2003-02-28 | 2008-12-30 | Bea Systems, Inc. | Computer product for a dynamically generated wrapper class |
US7536675B2 (en) * | 2003-02-28 | 2009-05-19 | Bea Systems, Inc. | Dynamic code generation system |
US7472400B2 (en) * | 2003-02-28 | 2008-12-30 | Bea Systems, Inc. | Method for dynamically generating a wrapper class |
GB0309056D0 (en) * | 2003-04-22 | 2003-05-28 | Transitive Technologies Ltd | Block translation optimizations for program code conversion |
US7917898B2 (en) | 2004-02-02 | 2011-03-29 | Intel Corporation | Methods and apparatus to provide a modular native method invocation system |
US8881099B2 (en) * | 2004-09-10 | 2014-11-04 | Oracle International Corporation | Dynamic generation of wrapper classes to implement call-by-value semantics |
US7590988B2 (en) * | 2005-03-08 | 2009-09-15 | Microsoft Corporation | Dynamic service generation for legacy components |
US7844958B2 (en) * | 2005-03-11 | 2010-11-30 | Aptana, Inc. | System and method for creating target byte code |
US7707547B2 (en) * | 2005-03-11 | 2010-04-27 | Aptana, Inc. | System and method for creating target byte code |
US8694797B2 (en) * | 2006-02-14 | 2014-04-08 | Lenovo (Sinapore) Pte Ltd | Method for preventing malicious software from execution within a computer system |
US8086873B2 (en) * | 2006-06-05 | 2011-12-27 | Lenovo (Singapore) Pte. Ltd. | Method for controlling file access on computer systems |
US8762976B2 (en) * | 2007-03-09 | 2014-06-24 | Microsoft Corporation | Static extensibility models with dynamic languages and scripts |
US8914774B1 (en) | 2007-11-15 | 2014-12-16 | Appcelerator, Inc. | System and method for tagging code to determine where the code runs |
US8954989B1 (en) | 2007-11-19 | 2015-02-10 | Appcelerator, Inc. | Flexible, event-driven JavaScript server architecture |
US8260845B1 (en) | 2007-11-21 | 2012-09-04 | Appcelerator, Inc. | System and method for auto-generating JavaScript proxies and meta-proxies |
US8566807B1 (en) | 2007-11-23 | 2013-10-22 | Appcelerator, Inc. | System and method for accessibility of document object model and JavaScript by other platforms |
US8719451B1 (en) | 2007-11-23 | 2014-05-06 | Appcelerator, Inc. | System and method for on-the-fly, post-processing document object model manipulation |
US8806431B1 (en) | 2007-12-03 | 2014-08-12 | Appecelerator, Inc. | Aspect oriented programming |
US8819539B1 (en) | 2007-12-03 | 2014-08-26 | Appcelerator, Inc. | On-the-fly rewriting of uniform resource locators in a web-page |
US8756579B1 (en) | 2007-12-03 | 2014-06-17 | Appcelerator, Inc. | Client-side and server-side unified validation |
US8527860B1 (en) | 2007-12-04 | 2013-09-03 | Appcelerator, Inc. | System and method for exposing the dynamic web server-side |
US8938491B1 (en) | 2007-12-04 | 2015-01-20 | Appcelerator, Inc. | System and method for secure binding of client calls and server functions |
US8285813B1 (en) | 2007-12-05 | 2012-10-09 | Appcelerator, Inc. | System and method for emulating different user agents on a server |
US8639743B1 (en) | 2007-12-05 | 2014-01-28 | Appcelerator, Inc. | System and method for on-the-fly rewriting of JavaScript |
US8335982B1 (en) | 2007-12-05 | 2012-12-18 | Appcelerator, Inc. | System and method for binding a document object model through JavaScript callbacks |
CN101458633B (en) * | 2007-12-13 | 2012-02-15 | 华为软件技术有限公司 | Method for accessing host program by script program, and system and apparatus thereof |
US8291079B1 (en) | 2008-06-04 | 2012-10-16 | Appcelerator, Inc. | System and method for developing, deploying, managing and monitoring a web application in a single environment |
US8880678B1 (en) | 2008-06-05 | 2014-11-04 | Appcelerator, Inc. | System and method for managing and monitoring a web application using multiple cloud providers |
US7596620B1 (en) | 2008-11-04 | 2009-09-29 | Aptana, Inc. | System and method for developing, deploying, managing and monitoring a web application in a single environment |
CN102346685B (en) * | 2010-07-29 | 2016-09-28 | 甲骨文国际公司 | Integrated adapter management system and method |
US9043765B2 (en) * | 2011-11-09 | 2015-05-26 | Microsoft Technology Licensing, Llc | Simultaneously targeting multiple homogeneous and heterogeneous runtime environments |
JP5868246B2 (en) * | 2012-04-05 | 2016-02-24 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Software development support method, program and apparatus |
SG11202003808PA (en) * | 2019-06-28 | 2020-05-28 | Advanced New Technologies Co Ltd | System and method for data processing |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5432795A (en) * | 1991-03-07 | 1995-07-11 | Digital Equipment Corporation | System for reporting errors of a translated program and using a boundry instruction bitmap to determine the corresponding instruction address in a source program |
US5675804A (en) * | 1995-08-31 | 1997-10-07 | International Business Machines Corporation | System and method for enabling a compiled computer program to invoke an interpretive computer program |
US5848274A (en) * | 1996-02-29 | 1998-12-08 | Supercede, Inc. | Incremental byte code compilation system |
US5999988A (en) * | 1997-03-31 | 1999-12-07 | Sun Microsystems, Inc. | Method and apparatus for generating and employing a run-time generated stub to reference an object in object oriented systems |
US6081665A (en) * | 1997-12-19 | 2000-06-27 | Newmonics Inc. | Method for efficient soft real-time execution of portable byte code computer programs |
US6141723A (en) * | 1998-04-07 | 2000-10-31 | Microware | Virtual machine system for accessing external subprogram functions |
US6151703A (en) * | 1996-05-20 | 2000-11-21 | Inprise Corporation | Development system with methods for just-in-time compilation of programs |
US6167565A (en) * | 1998-01-08 | 2000-12-26 | Microsoft Corporation | Method and system of custom marshaling of inter-language parameters |
US6164841A (en) * | 1998-05-04 | 2000-12-26 | Hewlett-Packard Company | Method, apparatus, and product for dynamic software code translation system |
US6247172B1 (en) * | 1998-07-02 | 2001-06-12 | Hewlett-Packard Company | Method for a translation system that aggressively optimizes and preserves full synchronous exception state |
US6321275B1 (en) * | 1995-04-24 | 2001-11-20 | Microsoft Corporation | Interpreted remote procedure calls |
US6851109B1 (en) * | 1999-05-06 | 2005-02-01 | International Business Machines Corporation | Process and system for dynamically compiling a partially interpreted method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2242293A (en) * | 1990-01-05 | 1991-09-25 | Apple Computer | Apparatus and method for dynamic linking of computer software components |
US5553286A (en) * | 1994-03-17 | 1996-09-03 | International Business Machines Corporation | System and method for preparing a computer program for execution |
US6938263B2 (en) * | 1996-04-23 | 2005-08-30 | Sun Microsystems, Inc. | System and method for facilitating dynamic loading of “stub” information to enable a program operating in one address space to invoke processing of a remote method or procedure in another address space |
US5822591A (en) * | 1996-08-29 | 1998-10-13 | Hewlett-Packard Company | Virtual code system |
US6074432A (en) * | 1998-03-19 | 2000-06-13 | Xilinx, Inc. | Method for generating a software class compatible with two or more interpreters |
US6202208B1 (en) * | 1998-09-29 | 2001-03-13 | Nortel Networks Limited | Patching environment for modifying a Java virtual machine and method |
-
1999
- 1999-04-23 US US09/298,637 patent/US6381737B1/en not_active Expired - Lifetime
-
2000
- 2000-04-20 CA CA002306545A patent/CA2306545A1/en not_active Abandoned
- 2000-04-20 AU AU28922/00A patent/AU774467B2/en not_active Expired
- 2000-04-24 JP JP2000122755A patent/JP2000347871A/en active Pending
- 2000-04-24 CN CNB001070231A patent/CN1171147C/en not_active Expired - Lifetime
- 2000-04-25 EP EP00303412A patent/EP1046984A3/en not_active Withdrawn
-
2002
- 2002-02-20 US US10/080,793 patent/US20020083416A1/en not_active Abandoned
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5432795A (en) * | 1991-03-07 | 1995-07-11 | Digital Equipment Corporation | System for reporting errors of a translated program and using a boundry instruction bitmap to determine the corresponding instruction address in a source program |
US6321275B1 (en) * | 1995-04-24 | 2001-11-20 | Microsoft Corporation | Interpreted remote procedure calls |
US5675804A (en) * | 1995-08-31 | 1997-10-07 | International Business Machines Corporation | System and method for enabling a compiled computer program to invoke an interpretive computer program |
US5848274A (en) * | 1996-02-29 | 1998-12-08 | Supercede, Inc. | Incremental byte code compilation system |
US6151703A (en) * | 1996-05-20 | 2000-11-21 | Inprise Corporation | Development system with methods for just-in-time compilation of programs |
US5999988A (en) * | 1997-03-31 | 1999-12-07 | Sun Microsystems, Inc. | Method and apparatus for generating and employing a run-time generated stub to reference an object in object oriented systems |
US6081665A (en) * | 1997-12-19 | 2000-06-27 | Newmonics Inc. | Method for efficient soft real-time execution of portable byte code computer programs |
US6167565A (en) * | 1998-01-08 | 2000-12-26 | Microsoft Corporation | Method and system of custom marshaling of inter-language parameters |
US6141723A (en) * | 1998-04-07 | 2000-10-31 | Microware | Virtual machine system for accessing external subprogram functions |
US6164841A (en) * | 1998-05-04 | 2000-12-26 | Hewlett-Packard Company | Method, apparatus, and product for dynamic software code translation system |
US6247172B1 (en) * | 1998-07-02 | 2001-06-12 | Hewlett-Packard Company | Method for a translation system that aggressively optimizes and preserves full synchronous exception state |
US6851109B1 (en) * | 1999-05-06 | 2005-02-01 | International Business Machines Corporation | Process and system for dynamically compiling a partially interpreted method |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030225973A1 (en) * | 2002-06-04 | 2003-12-04 | Isaak Garber | Two area stack |
US6772292B2 (en) * | 2002-06-04 | 2004-08-03 | Isaak Garber | Two area stack |
US20050188343A1 (en) * | 2002-06-08 | 2005-08-25 | Koninklijke Philips Electronics N.V. | Operation of a java virtual machine |
US7444624B2 (en) * | 2004-11-25 | 2008-10-28 | Nokia Corporation | Method for the secure interpretation of programs in electronic devices |
US20060117305A1 (en) * | 2004-11-25 | 2006-06-01 | Nokia Corporation | Method for the secure interpretation of programs in electronic devices |
US20060129972A1 (en) * | 2004-11-30 | 2006-06-15 | Tyburski John C | Application developer and method for generating platform independent code |
US20070011669A1 (en) * | 2005-07-06 | 2007-01-11 | International Business Machines Corporation | Software migration |
US8949809B2 (en) | 2012-03-01 | 2015-02-03 | International Business Machines Corporation | Automatic pipeline parallelization of sequential code |
US20130275955A1 (en) * | 2012-04-13 | 2013-10-17 | International Business Machines Corporation | Code profiling of executable library for pipeline parallelization |
US8910137B2 (en) * | 2012-04-13 | 2014-12-09 | International Business Machines Corporation | Code profiling of executable library for pipeline parallelization |
US20150067663A1 (en) * | 2012-04-13 | 2015-03-05 | International Business Machines Corporation | Code profiling of executable library for pipeline parallelization |
US9619360B2 (en) * | 2012-04-13 | 2017-04-11 | International Business Machines Corporation | Code profiling of executable library for pipeline parallelization |
US10452369B2 (en) * | 2012-04-13 | 2019-10-22 | International Business Machines Corporation | Code profiling of executable library for pipeline parallelization |
Also Published As
Publication number | Publication date |
---|---|
CN1171147C (en) | 2004-10-13 |
CA2306545A1 (en) | 2000-10-23 |
JP2000347871A (en) | 2000-12-15 |
AU2892200A (en) | 2000-10-26 |
US6381737B1 (en) | 2002-04-30 |
AU774467B2 (en) | 2004-07-01 |
EP1046984A2 (en) | 2000-10-25 |
EP1046984A3 (en) | 2003-07-23 |
CN1271892A (en) | 2000-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6381737B1 (en) | Automatic adapter/stub generator | |
US6513156B2 (en) | Interpreting functions utilizing a hybrid of virtual and native machine instructions | |
US6651080B1 (en) | Techniques for implementing pluggable virtual machines | |
USRE39519E1 (en) | Mixed execution stack and exception handling | |
EP3314422B1 (en) | Extending a virtual machine instruction set architecture | |
EP1145120B1 (en) | Generating compiled programs for interpretive runtime environments | |
EP0923028B1 (en) | Object heap analysis techniques for discovering memory leaks and other run-time information | |
US6021273A (en) | Interpreter generation and implementation utilizing interpreter states and register caching | |
US20050060695A1 (en) | Lazy compilation of template-generated classes in dynamic compilation execution environments | |
JPH11296380A (en) | Method and system for giving dynamic optimizing information in code analyzing run-time environment | |
JPH05241845A (en) | System and method for generating interface definition | |
JPH05241844A (en) | Device and method for organizing class | |
US20090320007A1 (en) | Local metadata for external components | |
JP2005504376A (en) | Software support for virtual machine interpreter (VMI) acceleration hardware | |
EP0950947B1 (en) | Static binding of dynamically dispatched calls in the presence of dynamic linking and loading | |
US7207036B2 (en) | Preprocessing of interfaces to allow fast call through | |
US20020199169A1 (en) | Representation of Java data types in virtual machines | |
US11243876B2 (en) | Techniques for accessing off-heap memory | |
Gebala et al. | Compiler to interpreter: experiences with a distributed programming language | |
WO2006059248A2 (en) | Mixed-mode code generation and execution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |