The most extensive documentation of the compiler can at present be found in the preprint of our accompanying conference paper as available here. For prospective users of the compiler, we recommend reading Section 3 of the paper as that provides a practical view of what type of code the compiler generates for you.

Installation

The Floorplan compiler itself (Haskell project) must be installed from source with the stack toolchain like so:

git clone https://github.com/RedlineResearch/floorplan.git
cd floorplan
stack build
stack install

Once this is done, and the flp executable from doing so is on your $PATH, you can write Floorplan-enabled Rust crates by adding the following two crates to your Cargo.toml:

The “Hello World” of Floorplan

The simplest memory layout you can define in Floorplan is an opaque chunk of memory, such as the Hello type as follows:

Hello -> 1 bytes