神刀安全网

Another Mini ARM C Compiler with JIT Support

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 inspired byc4.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Another Mini ARM C Compiler with JIT Support

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮