TheAmsterdam Compiler Kit(ACK) is aretargetable compilersuite andtoolchainwritten byAndrew TanenbaumandCeriel Jacobs,since 2005 maintained byDavid Given.[1]It has frontends for the followingprogramming languages:C,Pascal,Modula-2,Occam,andBASIC.
Developer(s) | Andrew Tanenbaum,Ceriel Jacobs; Currently: David Given |
---|---|
Initial release | early 1980s |
Stable release | 6.0pre5
/ June 2, 2016 |
Repository | |
Written in | C |
Operating system | Minix,Unix-like |
Type | Retargetable compiler |
License | BSD licenses |
Website | tack |
History
editThe 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 asMINIX's native compiler toolchain until the MINIXuserlandwas largely replaced by that ofNetBSD(MINIX 3.2.0) andClangwas adopted as the system compiler.
It was originally closed-source software (that allowedbinariesto be distributed for MINIX as a special case), but in April 2003 it was released under theBSD licenses.
Working principle
editMaximum portability is achieved by using anintermediate languageusingbytecode,called EM. Each language front-end produces EMobject files,which are then processed through several generic optimisers before being translated by a back-end into nativemachine code.
ACK comes with a generic linker and librarian capable of manipulating files in the ACK's owna.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
editACK backends can produce native machine code for a wide range of CPUs, even starting with small 8 bit CPUs.
- 6502
- 65C124- used for the first software controlled implantable defibrrillator, the target was unique in that the C/EM code word size was 1 byte for an int and 2 bytes for a long.
- 6800(assembler only)
- 6805(assembler only)
- 6809(assembler only)
- ARM
- 8080*
- Z80
- Z8000
- Intel 8086*
- i386
- 68000
- 68020
- 68040
- NS32016
- S2650(assembler only)
- SPARC
- VAX4
- PDP-11
- Broadcom VideoCore IV (BCM2708)*
*Version 6.0
See also
editReferences
edit- ^"The Amsterdam Compiler Kit".2005.Time line on official website.
- ^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.S2CID1217657.
- ^A.V. Aho, R. Sethi & J.D. Ullman (1986).Compilers: Principles, Techniques, and Tools( "The Dragon Book" ).Addison-Wesley. p.511.ISBN0-201-10088-6.
External links
edit- Official website
- Official sourcecode repository,including changelog (GitHub)