Jump to content

Amsterdam Compiler Kit

From Wikipedia, the free encyclopedia
Amsterdam Compiler Kit
DevelopersAndrew Tanenbaum, Ceriel Jacobs;
Currently: David Given
Initial releaseearly 1980s
Stable release
6.0pre5 / June 2, 2016; 9 years ago (2016-06-02)
Repository
Written inC
Operating systemMinix, Unix-like
TypeRetargetable compiler
LicenseBSD licenses
Websitetack.sourceforge.net

The Amsterdam Compiler Kit (ACK) is a retargetable compiler suite and toolchain written by Andrew Tanenbaum and Ceriel Jacobs, since 2005 maintained by David Given.[1] It has frontends for the following programming languages: C, Pascal, Modula-2, Occam, and BASIC.

History

[edit]

The ACK's notability stems from the fact that in the early 1980s it was one of the first portable compilation systems designed to support multiple source languages and target platforms.[2][3]

The ACK was known as MINIX's native compiler toolchain until the MINIX userland was largely replaced by that of NetBSD (MINIX 3.2.0) and Clang was adopted as the system compiler.

It was originally closed-source software, initially distributed by Tanenbaum himself,[4] later through UniPress Software and Transmediair Utrecht as distributors in the Americas and Europe respectively. The distribution of compiler binaries for MINIX was a special case in this arrangement.[5] In April 2003, it was released under the BSD licenses.

Working principle

[edit]

Maximum portability is achieved by using an intermediate language using bytecode, called EM. Each language front-end produces EM object files, which are then processed through several generic optimisers before being translated by a back-end into native machine code.

ACK comes with a generic linker and librarian capable of manipulating files in the ACK's own a.out-based format; it will work on files containing EM code as well as native machine code. However, EM code cannot be linked to native machine code without translating the EM binary first.

Target processors

[edit]

ACK backends can produce native machine code for a wide range of CPUs, even starting with small 8 bit CPUs.

* Version 6.0

See also

[edit]

References

[edit]
  1. ^ "The Amsterdam Compiler Kit". 2005. Time line on official website.
  2. ^ Tanenbaum, Andrew S; van Staveren, H.; Keizer, E.G.; Stevenson, J.W. (1983). "A Practical Tool Kit For Making Portable Compilers". Communications of the ACM. 26 (9): 654–660. doi:10.1145/358172.358182. hdl:1871/2605. S2CID 1217657.
  3. ^ A.V. Aho, R. Sethi & J.D. Ullman (1986). Compilers: Principles, Techniques, and Tools ("The Dragon Book"). Addison-Wesley. p. 511. ISBN 0-201-10088-6.
  4. ^ "The Amsterdam Compiler Kit". The Australian UNIX Users Group Newsletter. July 1984. p. 17. Retrieved 21 October 2025.
  5. ^ Tanenbaum, Andrew S. (1988). MINIX for the IBM PC, XT, and AT. Prentice Hall. pp. xv. Retrieved 21 October 2025.
[edit]