Coder Social home page Coder Social logo

cake-c's Introduction

cake-c

A simple wrapper around CakeML to make compiling nicer.


Why?

The traditional method for turning a CakeML program into an executable:

(Where both the cake executable and the basis_ffi.c file are provided by CakeML.)

> cake <myfile.cml > myfile.S
> cc -o myfile basis_ffi.c myfile.S

Using cake-c:

> cake-c myfile.cml myfile

Installation

Place cake-c into the same directory as CakeML, and then make it available to your shell by either:

  • Ensuring the CakeML directory is part of PATH
  • Have an alias to cake-c.

cake-c doesn't care which option you go with.


Usage

cake-c does have commandline help in the form of: cake-c --help.

cake-c takes two arguments:

  1. The name of the file you are compiling.
  2. The name of the executable you wish to create.

cake-c will place the executable in the same folder as the file you are compiling.

For example:

> echo 'print "Hello, World!\n";' > hello.cml
> cake-c hello.cml hello
Setting up environment...
Environment built.
Compiling CakeML data...
Compiling executable...
Done Compiling.
Removing environment...
Environment removed.
> ./hello
Hello, World!

LICENSE

cake-c is licensed under Creative Commons, Zero License.

It is effectively Public Domain, but the exact legal code can be found here.

cake-c's People

Contributors

shakna-israel avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cake-c's Issues

Installation

A nicer installation process would be good...

It may be legal to allow cake-c to install a version of CakeML, or multiple versions.

Investigation required.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.