1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Elk is a thin CLI wrapper over the Moose.
Elk may be installed as a binary `elk` as follows:
```sh
cargo install --bin elk
```
Alternatively, Elk may also be invoked using `cargo run`, which is particularly useful during development:
```sh
cargo run --bin elk --
```
To use Elk as a compiler:
```sh
elk compile in.moose out.moose
```
To use Elk to collect (static) statistics about a computation:
```sh
elk stats op_hist input.moose
elk stats op_hist input.moose --by-placement
elk stats op_count input.moose
elk stats -b op_count input.moose
```