A system and method for automatic code generation includes parsing source code in a source program to automatically generate reliability, accessibility and serviceability (RAS) code in response to the source code. The automatically generated code is executed in a check in stage. All, a portion or none of the automatically generated code is selectively removed during a check out stage to keep the source program clean and focused.
Drawings
Claims20
A system for automatic code generation, comprising:
a code analyzer including a processor configured to parse source code, the code analyzer including an automatic mechanism configured to respond to code in the source program to automatically generate and remove reliability, accessibility and serviceability (RAS) source code;
a check in stage configured to insert the automatically generated RAS source code into the source code when a developer has to check in the source code;
and
a check out stage configured to selectively remove all, a portion or none of the automatically generated source code during check out to keep the source program clean and focused.
1 more element
A method for automatic code generation, comprising:
parsing source code in a source program to automatically generate reliability, accessibility and serviceability (RAS) source code in response to the source code;
inserting the automatically generated RAS source code into the source code in a check in stage;
and
selectively removing all, a portion or none of the automatically generated source code during a check out stage to keep the source program clean and focused.
1 more element
A computer program product for automatic code generation comprising a non-transitory computer useable storage medium including a computer readable program, wherein the computer readable program when executed on a computer causes the computer to perform the steps of:
parsing source code in a source program to automatically generate reliability, accessibility and serviceability (RAS) source code in response to the source code;
inserting the automatically generated RAS source code into the source code in a check in stage;
and
selectively removing all, a portion or none of the automatically generated source code during a check out stage to keep the source program clean and focused.
28 Feb 2030Estimated · howhide20 years from earliest known nonprovisional domestic filing plus recorded patent term adjustment, including 1,150 days of adjustment. Maintenance-fee lapses, terminal disclaimers and statutory extensions have not been checked. The continuity chain may be incomplete; this is not an enforceability determination.
#The present invention relates to automatic code generation, and more particularly to an autonomic mechanism provided to automate reliability, availability and serviceability (RAS) code generation and removal to improve quality assurance.
#The disclosure will provide details in the following description of preferred embodiments with reference to the following figures wherein:
#FIG. 1 is a block/flow diagram showing a system and process flow for automatically generating RAS program code in accordance with the present principles; and
#FIG. 2 is a block/flow diagram showing a program and method for automatically generating RAS program code in accordance with the present principles.
Detailed description4,340 words
#In accordance with present embodiments, an autonomic mechanism is provided to automate Reliability, Availability and Serviceability (RAS) code generation and removal. The RAS code may be executed automatically within a software Integrated Development Environment (IDE) or other suitable environment, e.g., when a developer has to “check-in” the code file. The mechanism similarly removes the code files automatically during “check out” to keep the main algorithm clean and focused. Clean and focused refers to the state of the program as being in compliance with applicable standards and policies with a minimized amount of code. The mechanism may also run independently against specific program modules and/or program component source code files to generate an intended result. This ensures RAS code is generated consistently corresponding to the code, with high quality assurance and complies with enterprise product policies. The RAS task is thereby removed from the developer load so that he/she may focus on other deliverables or activities.
#Embodiments of the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment including both hardware and software elements. In a preferred embodiment, the present invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
#Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer readable medium can be any apparatus that may include, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk—read only memory (CD-ROM), compact disk—read/write (CD-R/W) and DVD.