Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ainfosec/crema
Crema: A Sub-Turing Programming Language
https://github.com/ainfosec/crema
Last synced: 5 days ago
JSON representation
Crema: A Sub-Turing Programming Language
- Host: GitHub
- URL: https://github.com/ainfosec/crema
- Owner: ainfosec
- License: mit
- Created: 2015-05-15T20:34:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-17T11:50:50.000Z (about 9 years ago)
- Last Synced: 2024-08-05T02:02:04.385Z (3 months ago)
- Language: C++
- Size: 2.18 MB
- Stars: 64
- Watchers: 15
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crema
(C) 2014-2015 Assured Information Security, Inc.## Introduction
Crema is a LLVM front-end that aims to specifically execute in sub-Turing Complete space.
Designed to be simple to learn, and practical for the majority of programming tasks needed,
Crema can restrict the computational complexity of the program to the minimum needed to improve
security.## Technical Details
Crema is developed in C++ in order to natively utilize the LLVM tool-chain and integrate with
flex/bison to simplify parser generation.## Getting started
Start off by cloning the latest version of Crema from this git repository### Building the Crema Tool
Before building the Crema tool, make sure that you have the following dependencies installed on your environment:1. g++
2. bison: http://www.gnu.org/software/bison/
3. llvm-dev
4. flex: http://flex.sourceforge.net/Build the Crema tool by running ```make``` in the src directory. This will create the "cremacc" program. You can clean the src directory by running ```make clean```
### Compiling your Crema programs with cremacc
To compile a Crema program into LLVM IR for JIT execution, simply use the "cremacc" program.Crema files use the extention ".crema". To build a crema file into an executable named "program.exe", use the command:
```
./cremacc -f -o program
```To print LLVM assembly to a file, use the -S option:
``` ./cremacc -f -S .ll```For help with all of the other command line options available for cremacc, simply run:
```./cremacc -h```## Learning Crema
Use this repository's Wiki page to get started with code examples, reference information, and other general topics about the Crema language.Distribution Statement "A" (Approved for Public Release, Distribution Unlimited)