License: Creative Commons Attribution 3.0 Unported license (CC BY 3.0)
When quoting this document, please refer to the following
DOI: 10.4230/OASIcs.SLATE.2014.159
URN: urn:nbn:de:0030-drops-45670
URL: http://dagstuhl.sunsite.rwth-aachen.de/volltexte/2014/4567/
Janousek, Jan ;
Málek, Jaroslav
Target Code Selection by Tilling AST with the Use of Tree Pattern Pushdown Automaton
Abstract
A new and simple method for target code selection by tilling an abstract syntax tree is presented. As it is usual, tree patterns corresponding to target machine instructions are matched in the abstract syntax tree. Matching tree patterns is performed with the use of tree pattern pushdown automaton, which accepts all tree patterns matching the abstract syntax tree in the linear postfix bar notation and represents a full index of the abstract syntax tree for tree patterns. The use of the index allows to match patterns quickly, in time depending on the size of patterns and not depending on the size of the tree. The selection of a particular target instruction corresponds to a modification of the abstract syntax tree and also a corresponding incremental modification of the index is performed. A reference to a fully functional prototype is provided.
BibTeX - Entry
@InProceedings{janousek_et_al:OASIcs:2014:4567,
author = {Jan Janousek and Jaroslav M{\'a}lek},
title = {{Target Code Selection by Tilling AST with the Use of Tree Pattern Pushdown Automaton}},
booktitle = {3rd Symposium on Languages, Applications and Technologies},
pages = {159--165},
series = {OpenAccess Series in Informatics (OASIcs)},
ISBN = {978-3-939897-68-2},
ISSN = {2190-6807},
year = {2014},
volume = {38},
editor = {Maria Jo{\~a}o Varanda Pereira and Jos{\'e} Paulo Leal and Alberto Sim{\~o}es},
publisher = {Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik},
address = {Dagstuhl, Germany},
URL = {http://drops.dagstuhl.de/opus/volltexte/2014/4567},
URN = {urn:nbn:de:0030-drops-45670},
doi = {10.4230/OASIcs.SLATE.2014.159},
annote = {Keywords: code generation, abstract syntax tree, indexing, tree pattern matching, pushdown automata}
}
Keywords: |
|
code generation, abstract syntax tree, indexing, tree pattern matching, pushdown automata |
Collection: |
|
3rd Symposium on Languages, Applications and Technologies |
Issue Date: |
|
2014 |
Date of publication: |
|
18.06.2014 |