首页    期刊浏览 2024年12月04日 星期三
登录注册

文章基本信息

  • 标题:Target Code Selection by Tilling AST with the Use of Tree Pattern Pushdown Automaton
  • 本地全文:下载
  • 作者:Jan Janousek ; Jaroslav M{\'a}lek
  • 期刊名称:OASIcs : OpenAccess Series in Informatics
  • 电子版ISSN:2190-6807
  • 出版年度:2014
  • 卷号:38
  • 页码:159-165
  • DOI:10.4230/OASIcs.SLATE.2014.159
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要: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.
  • 关键词:code generation; abstract syntax tree; indexing; tree pattern matching; pushdown automata
国家哲学社会科学文献中心版权所有