Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Building

$ git clone https://github.com/JoyenBenitto/macro_gen.git
$ cd macro_gen
$ cargo build

For an optimized binary, build with --release instead (output lands in target/release/macro_gen):

$ cargo build --release

To also build the CMOS backend, point CIRCT_DIR at a pre-built CIRCT and enable the circt feature (see CMOS Backend):

$ export CIRCT_DIR=/path/to/circt
$ cargo build --release --features circt

Run the test suite with:

$ cargo test

and with the CIRCT gated tests included:

$ cargo test --features circt