Administering a process filesystem with respect to program code conversion
AssigneeInternational Business Machines Corporation
InventorsJames W. Walker, Ryan J. Cocks
Life of this patent
Estimating the term…
Abstract
A technique is provided for administering references to a subject process filesystem during translation of subject code into target code in a dynamic binary translator. The subject code for execution on a subject processor is received by a translator, and corresponding target code for execution on the target processor is generated. The translator is arranged to establish, populate and maintain a process data structure, so that code can be generated by the translator in which subject references to the subject process filesystem are handled effectively.
Claims32
A computer apparatus comprising:
- a target processor;
- and
- data storage coupled to the target processor, the data storage including:
- an operating system having a target process filesystem;
- and
- a translator process running above the operating system that dynamically translates received subject code intended for execution on a subject processor into target code for execution on the operating system by the target processor, wherein the translator process, when executed, is arranged:
- (a) to populate a target process data structure with information concerning the translator process;
- and
- (b) responsive to a reference made in the received subject code to information in a subject process filesystem, to refer to the target process data structure instead of the target process filesystem.
A method in a data processing system of administering a process filesystem with respect to program code conversion from subject code for execution on a subject processor to target code for execution by a target processor of the data processing system, the method comprising:
- the data processing system executing an operating system having a target process filesystem;
- the data processing system establishing a translator process running above the operating system in response to received subject code which, when executed on a subject processor, would establish a subject process;
- the translator process dynamically translating received subject code intended for execution on a subject processor into target code for execution by the target processor on the operating system;
- populating a target process data structure accessible to the translator process with information concerning the translator process established in response to the received subject code;
- and
- in response to a reference in the received subject code to information in a subject process filesystem, referring to the target process data structure populated with the information concerning the translator process instead of the target process file system of the operating system of the data processing system.
A program product, comprising:
- a computer-readable storage medium;
- and
- program code stored within the computer-readable storage medium and executable by a computer to perform:
- establishing a translator process in response to received subject code which, when executed on a subject processor, would establish a subject process, wherein the translator process runs above an operating system of the computer, and wherein the operating system has a target process filesystem;
- the translator process dynamically translating received subject code intended for execution on a subject processor into target code for execution by the target processor on an operating system;
- populating a target process data structure accessible to the translator process with information concerning the translator process established in response to the received subject code;
- and
- in response to a reference in the received subject code to information in a subject process filesystem, referring to the target process data structure populated with the information concerning the translator process instead of the target process filesystem of the operating system of the computer.
Dependencies are inferred from the claim text.