Skip to main content

Pure python compiler infrastructure

Project description

The ppci project is a compiler, assembler, linker and build-system written entirely in python. The project contains everything from language front-end to code generation. It contains a front-end for the c3 language, can optimize this code and generate ARM-code.

The project contains the following:

  • Language front-ends: Brainfuck, c3

  • Various code optimizers

  • Backends for various platforms: ARM, Thumb, Python

  • Assembler

  • Linker

Warning: This project is in alpha state and not ready for production use!

Quick guide

ppci can be installed using pip:

$ pip install ppci

To invoke the builder and compile the snake demo, use the following:

$ ppci-build.py -f examples/build.xml

If the compilation was succesful, the snake demo compiled into ‘examples/snake.bin’. This is a binary file with ARM-code which can be run in qemu as follows:

$ qemu-system-arm -M lm3s6965evb -kernel snake.bin -serial stdio

This runs the snake demo on an emulated lm3s demo board and displays the game to the console.

Instead of using the command line tools, you can also use the api.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ppci-0.1.0.tar.gz (151.8 kB view details)

Uploaded Source

File details

Details for the file ppci-0.1.0.tar.gz.

File metadata

  • Download URL: ppci-0.1.0.tar.gz
  • Upload date:
  • Size: 151.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ppci-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8848b507fe8277facc6d8b2366c31f57cb81600f45e82df14b65ed21e00b31da
MD5 e7bf4cb2f3827608b8a4f04ac8fb1b47
BLAKE2b-256 c4ac4382e7bc576c77e3e421deec9ec72fb05619929830a4927fd89e10ee3fb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page