Show simple item record

dc.contributor.advisorShankar, Priti
dc.contributor.authorMadhavan, Maya Chinmayee
dc.date.accessioned2025-10-15T11:24:36Z
dc.date.available2025-10-15T11:24:36Z
dc.date.submitted1998
dc.identifier.urihttps://etd.iisc.ac.in/handle/2005/7196
dc.description.abstractCode generation is a difficult and complex phase of compiler writing. Most problems associated with the code generation phase are NP-complete; therefore, heuristics have been employed to solve them. Instruction selection is one of the few sub-problems of code generation that has a polynomial-time solution. Among the various methods available for performing instruction selection, tree pattern matching has gained prominence due to its usefulness in designing efficient tools for retargetable code generation. This thesis presents the design and implementation of one such tool. The input specification to the tool is in the form of a regular tree grammar augmented with costs. The tool produces, as output, a deterministic pushdown automaton, encoded in the form of tables. The traversal of the intermediate tree code and the reporting of matches can be viewed as a parsing problem, for which the automaton can be employed. The use of the automaton can be extended to select an optimal instruction sequence, by virtue of the fact that cost information, obtained during a preprocessing phase, can be stored in its finite state control. The tool can thus be used for either static or dynamic cost computation. The limitations of the tool are also analyzed in the thesis.
dc.language.isoen_US
dc.relation.ispartofseriesT04331
dc.rightsI grant Indian Institute of Science the right to archive and to make available my thesis or dissertation in whole or in part in all forms of media, now hereafter known. I retain all proprietary rights, such as patent rights. I also retain the right to use in future works (such as articles or books) all or part of this thesis or dissertation
dc.subjectTree Pattern Matching
dc.subjectPushdown Automaton
dc.subjectCost Optimization
dc.titleOptimal linear regular tree pattern matching using pushdown automata
dc.typeThesis
dc.degree.nameMSc Engg
dc.degree.levelMasters
dc.degree.grantorIndian Institute of Science
dc.degree.disciplineEngineering


Files in this item

Thumbnail

This item appears in the following Collection(s)

Show simple item record