skip to main content
10.1145/592849.592851acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
Article

Native code compilation of Erlang's bit syntax

Published:07 October 2002Publication History

ABSTRACT

Erlang's bit syntax caters for flexible pattern matching on bit streams (objects known as binaries). Binaries are nowadays heavily used in typical Erlang applications such as protocol programming, which in turn has created a need for efficient support of the basic operations on binaries.To this effect, we describe a scheme for efficient native code compilation of Erlang's bit syntax. The scheme relies on partial translation for avoiding code explosion, and improves the performance of programs manipulating binaries by translating frequently occurring instances of BEAM instructions into native code via an intermediate translation to instructions of a register transfer language. Our performance evaluation shows that in a HiPE-enabled Erlang/OTP system, the obtained speedups are often significant.

References

  1. E. Johansson, M. Pettersson, and K. Sagonas. HiPE: A High Performance Erlang system. In Proceedings of the ACM SIGPLAN Conference on Principles and Practice of Declarative Programming, pages 32-43. ACM Press, Sept. 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. P. Nyblom. The bit syntax --- the released version. In Proceedings of the Sixth International Erlang/OTP User Conference, Oct. 2000. Available at http://www.erlang.se/euc/00/.Google ScholarGoogle Scholar
  3. M. Pettersson, K. Sagonas, and E. Johansson. The HiPE/x86 Erlang compiler: System description and performance evaluation. In Proceedings of the Sixth International Symposium on Functional and Logic Programming, LNCS. Springer, Sept. 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. C. Wikström and T. Rogvall. Protocol programming in Erlang using binaries. In Proceedings of the Fifth International Erlang/OTP User Conference, Oct. 1999. Available at http://www.erlang.se/euc/99/.Google ScholarGoogle Scholar
  1. Native code compilation of Erlang's bit syntax

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      ERLANG '02: Proceedings of the 2002 ACM SIGPLAN workshop on Erlang
      October 2002
      77 pages
      ISBN:1581135920
      DOI:10.1145/592849
      • Conference Chair:
      • Rex Page,
      • Program Chair:
      • John Hughes

      Copyright © 2002 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 7 October 2002

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      Overall Acceptance Rate51of68submissions,75%

      Upcoming Conference

      ICFP '24

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader