diff options
| author | Alasdair | 2020-08-25 17:20:00 +0100 |
|---|---|---|
| committer | Alasdair | 2020-08-25 17:20:00 +0100 |
| commit | 14e5c79b1c6943c88ab36ccc46f073674a76e16c (patch) | |
| tree | e0dbddb46ddbbba49d60081cb613737f26983b6e /src | |
| parent | 758a5b23ff0426ab6cf880d181fce1552b7f3ca7 (diff) | |
Add function sail_set_coverage_file to sail_coverage header
Can be set by C emulator to control where coverage information is
written
Diffstat (limited to 'src')
| -rw-r--r-- | src/jib/c_backend.mli | 2 | ||||
| -rw-r--r-- | src/sail.ml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/jib/c_backend.mli b/src/jib/c_backend.mli index 5f2d5211..2d3d3c2b 100644 --- a/src/jib/c_backend.mli +++ b/src/jib/c_backend.mli @@ -89,7 +89,7 @@ val opt_extra_params : string option ref val opt_extra_arguments : string option ref val opt_branch_coverage : out_channel option ref - + (** Optimization flags *) val optimize_primops : bool ref diff --git a/src/sail.ml b/src/sail.ml index 31fc7717..d07ea216 100644 --- a/src/sail.ml +++ b/src/sail.ml @@ -234,7 +234,7 @@ let options = Arg.align ([ " remove comma separated list of functions from C output, replacing them with unit"); ( "-c_coverage", Arg.String (fun str -> C_backend.opt_branch_coverage := Some (open_out str)), - " output file for C code instrumention to track branch coverage"); + "<file> Turn on coverage tracking and output information about all branches and functions to a file"); ( "-elf", Arg.String (fun elf -> opt_process_elf := Some elf), " process an ELF file so that it can be executed by compiled C code"); |
