AMaCC = Another Mini ARM C Compiler
AMaCC is built from scratch, supoorting ARM architecture. There are 3 execution modes AMaCC implements:
- Just-in-Time compiler for ARM backend
- Generate valid Executable and Linkable Format (ELF) executables
- Interpreter-only execution
AMaCC is capable of compiling C source files written in the following syntax:
- data types: char, int, struct, and pointer
- condition statements: if, while, for, switch, return, and expression
-
Install Linaro ARM Toolchain
- linaro-toolchain-binaries (little-endian)
-
Install QEMU for ARM user emulation
sudo apt-get install qemu-user
Run 'make check' and you should see this:
[ compiled ]
hello, world
[ nested ]
hello, world
AMaCC is inspired by c4.