Enhancing the AKL compiler using global analysis

نویسنده

  • Per Brand
چکیده

A method of enhancing the AKL platform, chiefly the compiler, using information provided by program analysis is presented. The analyzer is assumed to deliver information about the possible types that program variables can take, the possible aliases that the variable might have, and for variables that are bound to complex terms whether or not the term might have other references. The enhanced AKL compiler produces more optimal code, which when executed will improve execution performance, and save memory. On an abstract level it is shown that in favourable cases an invoked agent can more quickly reach the conclusion that it should suspend, suspend on fewer variables and thus create fewer suspensions in memory, and wake only to suspend again fewer times. Also, unification may be replaced by destructive assignment, saving memory, and even processing power if a structure that is being created has common fields with one that is being consumed. The report ends with a discussion about what can be expected from the optimization on real programs.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The implementation of AKL(FD)

AKL(FD) is an integration of (an extension of) the nite domain constraint system FD in AKL, a deep concurrent constraint programming language [CJH94]. In this paper we describe the implementation of the FD solver and its adaptation to the generic constraint interface of the AGENTS implementation of AKL. We also describe compilation techniques used by the AKL(FD) compiler.

متن کامل

The implementation of AKL ( FD ) Bj

AKL(FD) is an integration of (an extension of) the nite domain constraint system FD in AKL, a deep concurrent constraint programming language CJH94]. In this paper we describe the implementation of the FD solver and its adaptation to the generic constraint interface of the AGENTS implementation of AKL. We also describe compilation techniques used by the AKL(FD) compiler. 1 Introduction Conceptu...

متن کامل

An Automat ic Translation Scheme from CLP to AKL

The Andorra Kernel language scheme was aimed, in principle, at simultaneously supporting the programming styles of Prolog and committed choice languages. Within the constraint programming paradigm, this family of languages could also in principle support the concurrent constraint paradigm. This happens for the Agents Kernel Language (AKL). On the other hand, AKL requires a somewhat detailed spe...

متن کامل

An Automatic Translation Scheme from Prolog to the Andorra Kernel Language

The Andorra family of languages (which includes the Andorra Kernel Language -AKL) is aimed, in principie, at simultaneously supporting the programming styles of Prolog and committed choice languages. On the other hand, AKL requires a somewhat detailed specification of control by the user. This could be avoided by programming in Prolog to run on AKL. However, Prolog programs cannot be executed d...

متن کامل

An evaluation of Penny a system for ne grain implicit parallelism

The Penny system is an implementation of AKL a con current constraint language with deep guards on shared memory multiprocessors It automatically extracts paral lelism in arbitrary AKL programs No user annotations are required nor there is any compiler support to extract par allelism We give an overview of the system and present empirical evaluation results from a set of benchmarks with varying...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1994