Method and compiler of compiling a program
AssigneeInternational Business Machines Corporation
InventorsWenjun Wang, Zhou Wu, Xin Zhong, Zheng Wang
Life of this patent
Estimating the term…
Abstract
The present invention provides a method and a compiler of compiling a source program. According to an aspect of the present invention, there is provided a method of compiling a source program comprising: identifying a hint related to vector aligning when syntax analyzing said source program; and generating a simplified code based on said identified hint related to vector aligning when generating a code.
Claims20
A method executable by a processor for compiling a source program comprising:
- analyzing syntactically at least one of the source program or output received from a lexical analysis unit;
- identifying a hint related to vector alignment, said hint related to vector alignment including a modifier of a vector identifier, said step of identifying performed during the step of analyzing syntactically;
- determining whether a vector is vector aligned based on said identified hint related to vector alignment;
- and
- generating a simplified code based on said identified hint related to vector alignment.
A computer-readable memory device having computer-executable instructions for performing a method for compiling a source program comprising:
- a syntax analysis unit configured to syntactically analyze at least one of the source program or an output from a lexical analysis unit, the syntax analysis unit further configured to:
- identify a hint related to vector alignment, said hint related to vector alignment including a modifier of a vector identifier;
- and
- determine whether a vector is vector aligned based on said identified hint related to vector alignment;
- and
- a code generation unit configured to generate a simplified code based on said identified hint related to vector alignment.
Dependencies are inferred from the claim text.