Method and system of migrating legacy code for upgraded systems
First Claim
Patent Images
1. A method of migrating legacy source code from a legacy system for use in a targeted system, comprising:
- obtaining a legacy source code from a legacy machine;
identifying an operational function performed by the legacy machine in the legacy source code independent of a platform source of the legacy source code;
refactoring, by a processor, independent of the platform source, the legacy source code by encapsulating the identified operational function with a user defined representation of the identified function;
compiling, by the processor, the refactored legacy source code using a configurable explicative compiler to present the encapsulated identified function as an operating specification of functions using the user defined representation(s), in a person readable language that is higher than machine language and independent of an operating system code of the targeted system to customize the operating specification of functions for operational compatibility with the targeted system'"'"'s operating system code;
determining whether all lines of code in the legacy source code are accounted for with respect to being associated with one of the user defined representations;
examining communication and block diagram structures in the legacy source code to determine encapsulation and refactoring opportunities within the operating specification of functions in response to determining that not all lines of code in the legacy source code are accounted for;
adding an encapsulation and refactoring boundaries to the lines of code in the operating specification of functions for lines of code that are unaccounted for; and
migrating the compiled legacy source code with the operating specification of functions using the user defined representation(s) into the targeted system for operation of the targeted system using the compiled legacy source code to perform the identified function in the targeted system.
0 Assignments
0 Petitions
Accused Products
Abstract
A method of maintaining or improving functionality of legacy code for operation in a new machine system is disclosed. Reference code and documentation are leveraged to provide functionality of the machine system. The sections may be identified and presented as user defined representations (for example, pseudocode, diagrams, descriptive text, or encapsulations) so that the reference code may be migrated to a newer machine system and the sections may be re-written as necessary to make the sections of reference compatible with the new machine system.
-
Citations
8 Claims
-
1. A method of migrating legacy source code from a legacy system for use in a targeted system, comprising:
-
obtaining a legacy source code from a legacy machine; identifying an operational function performed by the legacy machine in the legacy source code independent of a platform source of the legacy source code; refactoring, by a processor, independent of the platform source, the legacy source code by encapsulating the identified operational function with a user defined representation of the identified function; compiling, by the processor, the refactored legacy source code using a configurable explicative compiler to present the encapsulated identified function as an operating specification of functions using the user defined representation(s), in a person readable language that is higher than machine language and independent of an operating system code of the targeted system to customize the operating specification of functions for operational compatibility with the targeted system'"'"'s operating system code; determining whether all lines of code in the legacy source code are accounted for with respect to being associated with one of the user defined representations; examining communication and block diagram structures in the legacy source code to determine encapsulation and refactoring opportunities within the operating specification of functions in response to determining that not all lines of code in the legacy source code are accounted for; adding an encapsulation and refactoring boundaries to the lines of code in the operating specification of functions for lines of code that are unaccounted for; and migrating the compiled legacy source code with the operating specification of functions using the user defined representation(s) into the targeted system for operation of the targeted system using the compiled legacy source code to perform the identified function in the targeted system. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer program product providing a configurable explicative compiler for use in migrating legacy source code to a targeted system, the computer program product comprising a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code being configured to:
-
identify a function related to an operation of a legacy machine in the legacy source code independent of a platform source of the legacy source code; map the identified function in the legacy source code to a user defined representation(s); refactor the legacy source code independent of the platform source, by encapsulating the identified function with the user defined representation of the identified function in a person readable language that is higher than machine language; compile the refactored legacy source code; determine whether all lines of code in the legacy source code are accounted for with respect to being associated with one of the user defined representations; examine communication and block diagram structures in the legacy source code to determine encapsulation and refactoring opportunities within an operating specification of functions in response to determining that not all lines of code in the legacy source code are accounted for; add an encapsulation and refactoring boundaries to the lines of code in the operating specification of functions for lines of code that are unaccounted for; and provide the compiled legacy source code in a specification for operation of the targeted system. - View Dependent Claims (7, 8)
-
Specification