کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
422147 685033 2009 17 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Abstract Interpretation of Functional Programs using an Attribute Grammar System
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Abstract Interpretation of Functional Programs using an Attribute Grammar System
چکیده انگلیسی

We describe an algorithm for abstract interpretation of an intermediate language in a Haskell compiler, itself also written in Haskell. It computes approximations of possible values for all variables in the program, which can be used for optimizing the object code. The analysis is done by collecting constraints on variables, which are then solved by fixpoint iteration. The set of constraints grows while solving, as possible values of unknown functions become known. The constraints are collected by decorating the abstract syntax tree with an attribute grammar based preprocessor for Haskell. An introduction to this preprocessor is also given.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Electronic Notes in Theoretical Computer Science - Volume 238, Issue 5, 10 October 2009, Pages 117-133