8000 GitHub - lumotuwe/amacc: Small C Compiler generating ELF executable for ARM architecture · GitHub
[go: up one dir, main page]

Skip to content
lumotuwePublic
forked from jserv/amacc

About

Small C Compiler generating ELF executable for ARM architecture

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

82 Commits

Folders and files

Repository files navigation

AMaCC = Another Mini ARM C Compiler

Introduction

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

Compatibility

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

Prerequisites

  • Install Linaro ARM Toolchain

    • linaro-toolchain-binaries (little-endian)
  • Install QEMU for ARM user emulation

sudo apt-get install qemu-user

Running AMaCC

Run 'make check' and you should see this:

[ compiled ]
hello, world
[ nested ]
hello, world

Acknowledgements

AMaCC is based on the infrastructure of c4. Hacker News discussions.

About

Small C Compiler generating ELF executable for ARM architecture

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0