THE AMSTERDAM COMPILER KIT V6.2+ ================================ © 1987-2005 Vrije Universiteit, Amsterdam 2025-04-17 INTRODUCTION ============ The Amsterdam Compiler Kit is a complete compiler toolchain consisting of front end compilers for a number of different languages, code generators, support libraries, and all the tools necessary to go from source code to executable on any of the platforms it supports. SUPPORT ======= Languages: ANSI C, Pascal, Modula 2, Basic. K&R is supported via the ANSI C compiler. Platforms: cpm produces i80 CP/M .COM files em22 produces EM22 bytecode files linux386 produces ELF executables for PC Linux systems linux68k produces ELF executables for m68020 Linux systems linuxmips produces ELF executables for little-endian MIPS32r2 Linux systems linuxppc produces ELF executables for PowerPC Linux systems minix68k produces Minix executables for m68000 Minix systems msdos386 produces i386 MS-DOS 32-bit DPMI .EXE files msdos86 produces i86 MS-DOS .COM files osx386 produces i386 OSX MachO executables osxppc produces PowerPC OSX MachO executables pc86 produces bootable floppy disk images for 8086 PCs pdpv7 produces PDP/11 V7 Unix binaries rpi produces Raspberry Pi GPU binaries INSTALLATION ============ The version 5.0 build mechanism has been completely rewritten (twice). Installation ought to be fairly straightforward. It will build on Unixishes including Linux, OSX, and Windows using MSYS2 and mingw32. Requirements: - an ANSI C compiler. This defaults to gcc. You can change this by setting the CC make variable. - flex and yacc. - GNU make. - Lua (any version) with the lua-posix library installed. - Python 3.4 or above. - about 1GB in the target directory. Instructions: - edit the Makefile. There's a small section at the top where you can change the configuration. Probably the only one you may want to edit is PREFIX, which changes where the ACK installs to, and PLATS, which changes which architectures are built. Look in `plat/*` to see what plats there are. - Run: make ...from the command line. This will do the build. The make system is fully parallelisable by default, but does take a while to start up. - Run: sudo make install ...from the command line. This will install the ACK in your PREFIX directory (by default, /usr/local). The ACK should now be ready to use. USAGE ===== Currently I haven't sorted out all the documentation --- it's supplied in the distribution, but not all of it gets installed yet --- so here is a quickstart guide. The main command to use is 'ack'. This invokes the compiler and the linker. Some useful options include: -m