Compiling the pi-calculus into a Multithreaded Typed Assembly Language

被引:1
作者
Cogumbreiro, Tiago [1 ]
Martins, Francisco [1 ]
Vasconcelos, Vasco T. [1 ]
机构
[1] Univ Lisbon, Fac Sci, Dept Informat, Lisbon, Portugal
关键词
Pi-calculus; multithreaded assembly language; typed assembly language;
D O I
10.1016/j.entcs.2009.06.004
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We extend a previous work on a multithreaded typed assembly language (MIL) targeted at shared memory multiprocessors, and describe the design of a type-preserving compiler from the pi-calculus into MIL. The language enforces a policy on lock usage through a typing system that also ensures race-freedom for typable programs, while allowing for typing various important concurrency patterns. Our translation to MIL generates code that is then linked to a library supporting a generic unbounded buffer monitor, variant of Hoare's bounded buffer monitor, entirely written in MIL. Such a monitor shields client code (the pi-calculus compiler in particular) from the hazardous task of direct lock manipulation, while allowing for the representation of pi-calculus channels. The compiler produces type correct MIL programs from type correct source code, generating low-contention cooperative multithreaded programs.
引用
收藏
页码:57 / 84
页数:28
相关论文
共 50 条
  • [21] Intersection Types and Runtime Errors in the Pi-Calculus
    Dal Lago, Ugo
    de Visme, Marc
    Mazza, Damiano
    Yoshimizu, Akira
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (POPL):
  • [22] Modeling PROFINET actions with timing pi-calculus
    Jin, Wei
    Gao, Xin
    Li, Jing
    PROCEEDINGS OF THE FIRST INTERNATIONAL CONFERENCE ON INFORMATION SCIENCES, MACHINERY, MATERIALS AND ENERGY (ICISMME 2015), 2015, 126 : 398 - 403
  • [23] Multisets and structural congruence of the pi-calculus with replication
    Engelfriet, J
    Gelsema, T
    THEORETICAL COMPUTER SCIENCE, 1999, 211 (1-2) : 311 - 337
  • [24] Investigating workflow patterns in term of pi-calculus
    Xue, Gang
    Lu, Joan
    Yao, Shaowen
    PROCEEDINGS OF THE 2007 11TH INTERNATIONAL CONFERENCE ON COMPUTER SUPPORTED COOPERATIVE WORK IN DESIGN, VOLS 1 AND 2, 2007, : 823 - +
  • [25] Synchrony vs Causality in the Asynchronous Pi-Calculus
    Peters, Kirstin
    Schicke, Jens-Wolfhard
    Nestmann, Uwe
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2011, (64): : 89 - 103
  • [26] A Completeness Proof for Bisimulation in the pi-calculus Using Isabelle
    Bengtson, Jesper
    Parrow, Joachim
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2007, 192 (01) : 61 - 75
  • [27] From Active Names to pi-calculus Rewriting Rules
    de Melo, Ana C. V.
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2005, 130 : 169 - 185
  • [29] Interpreting a finitary pi-calculus in differential interaction nets
    Ehrhard, Thomas
    Laurent, Olivier
    INFORMATION AND COMPUTATION, 2010, 208 (06) : 606 - 633
  • [30] Self-applicable partial evaluation for the pi-calculus
    Gengler, M
    Martel, M
    ACM SIGPLAN NOTICES, 1997, 32 (12) : 36 - 46