Nothing Special   »   [go: up one dir, main page]

skip to main content
article
Free access

An APL ompiler

Published: 01 June 2000 Publication History

Abstract

Even if APL is the best-suited programming language for multi-dimensional data, nowadays computer applications additionally require complex graphical user interfaces, internet and database access. Combining software written in C, C++ or Java with interpreted APL programs is difficult. A homogeneous solution has been found by automatically converting APL programs into native C code. A complete APL2 like system including interpreter and session manager has been implemented in ISO C from scratch based on the standard C library. It is the property of the author and not yet commercially available. It has been successfully compiled on several operating systems. The built in system call APL2C allows one to compile any APL function including all referenced functions or operators within the workspace into native C code and completely removes the interpreter using direct calls to the C coded APL primitives. Only obvious restrictions (no runtime execution of character arrays or dynamic creation of functions via FX) apply. In addition, a makefile is created to enable the simple build of standalone executable files. The C files, generated by APL2C, can be easily mixed with other C/C++ source files and compiled on any platform provided that the required library for the APL primitives is available.

References

[1]
BERNECKY R.: An Overview of the APEX Compiler, University of Toronto, Department of Computer Science, Technical Report 305/97
[2]
BUDD T.: An APL compiler, Springer-Verlag New York Berlin Heidelberg London Paris Tokyo, ISBN: 0-387-96643-9 (1988)
[3]
CHING W.-M.: Program Analysis and Code Generation in an APL/370 Compiler, IBM Journal of Research and Development 30(6): 594-602 (1986)
[4]
DISCROLL G. C.JR.; ORTH D. L.: Compiling APL: The Yorktown APL Translator, IBM Journal of Research and Development 30(6): 583-593 (1986)
[5]
ISO/IEC 9899:1990: ISO C Standard, ISO Central Secretariat, Case postale 56, 1211 Geneva 20, SWITZERLAND
[6]
IVERSON K. E.: A Programming Language, John Wiley & Sons, Inc., New York (1962)

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM SIGAPL APL Quote Quad
ACM SIGAPL APL Quote Quad  Volume 30, Issue 4
June 2000
253 pages
ISSN:0163-6006
DOI:10.1145/570440
Issue’s Table of Contents
  • cover image ACM Conferences
    APL '00: Proceedings of the international conference on APL-Berlin-2000 conference
    July 2000
    258 pages
    ISBN:1581131828
    DOI:10.1145/570475

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 June 2000
Published in SIGAPL Volume 30, Issue 4

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)96
  • Downloads (Last 6 weeks)10
Reflects downloads up to 30 Nov 2024

Other Metrics

Citations

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media